return instance.status
     except:
         # print ("Error [get_instance_status(nova_client, '%s')]:" %
-        #        str(instance), e)
+        #        str(instance)), e
         return None
 
 
         return instance
     except Exception, e:
         print ("Error [get_instance_by_name(nova_client, '%s')]:" %
-               instance_name, e)
+               instance_name), e
         return None
 
 
         flavor = nova_client.flavors.create(flavor_name, ram, vcpus, disk)
     except Exception, e:
         print ("Error [create_flavor(nova_client, '%s', '%s', '%s', "
-               "'%s')]:" % (flavor_name, ram, disk, vcpus), e)
+               "'%s')]:" % (flavor_name, ram, disk, vcpus)), e
         return None
     return flavor.id
 
         return True
     except Exception, e:
         print ("Error [add_floating_ip(nova_client, '%s', '%s')]:" %
-               (server_id, floatingip_id), e)
+               (server_id, floatingip_id)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_floating_ip(nova_client, '%s')]:" %
-               floatingip_id, e)
+               floatingip_id), e
         return False
 
 
         return subnet['subnets'][0]['id']
     except Exception, e:
         print ("Error [create_neutron_subnet(neutron_client, '%s', '%s', "
-               "'%s')]:" % (name, cidr, net_id), e)
+               "'%s')]:" % (name, cidr, net_id)), e
         return False
 
 
         return port['port']['id']
     except Exception, e:
         print ("Error [create_neutron_port(neutron_client, '%s', '%s', "
-               "'%s')]:" % (name, network_id, ip), e)
+               "'%s')]:" % (name, network_id, ip)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [update_neutron_net(neutron_client, '%s', '%s')]:" %
-               (network_id, str(shared)), e)
+               (network_id, str(shared))), e
         return False
 
 
         return port['port']['id']
     except Exception, e:
         print ("Error [update_neutron_port(neutron_client, '%s', '%s')]:" %
-               (port_id, device_owner), e)
+               (port_id, device_owner)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [add_interface_router(neutron_client, '%s', '%s')]:" %
-               (router_id, subnet_id), e)
+               (router_id, subnet_id)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [add_gateway_router(neutron_client, '%s')]:" %
-               router_id, e)
+               router_id), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_neutron_net(neutron_client, '%s')]:" %
-               network_id, e)
+               network_id), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_neutron_subnet(neutron_client, '%s')]:" %
-               subnet_id, e)
+               subnet_id), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_neutron_router(neutron_client, '%s')]:" %
-               router_id, e)
+               router_id), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [remove_interface_router(neutron_client, '%s', '%s')]:" %
-               (router_id, subnet_id), e)
+               (router_id, subnet_id)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [remove_gateway_router(neutron_client, '%s')]:" %
-               router_id, e)
+               router_id), e
         return False
 
 
         return secgroup['security_group']
     except Exception, e:
         print ("Error [create_security_group(neutron_client, '%s', '%s')]:" %
-               (sg_name, sg_description), e)
+               (sg_name, sg_description)), e
         return False
 
 
         print ("Error [create_secgroup_rule(neutron_client, '%s', '%s', "
                "'%s', '%s', '%s', '%s')]:" % (neutron_client, sg_id, direction,
                                               port_range_min, port_range_max,
-                                              protocol), e)
+                                              protocol)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [add_secgroup_to_instance(nova_client, '%s', '%s')]: " %
-               (instance_id, secgroup_id), e)
+               (instance_id, secgroup_id)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [update_sg_quota(neutron_client, '%s', '%s', "
-               "'%s')]:" % (tenant_id, sg_quota, sg_rule_quota), e)
+               "'%s')]:" % (tenant_id, sg_quota, sg_rule_quota)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_security_group(neutron_client, '%s')]:" %
-               secgroup_id, e)
+               secgroup_id), e
         return False
 
 
         return image.id
     except Exception, e:
         print ("Error [create_glance_image(glance_client, '%s', '%s', "
-               "'%s')]:" % (image_name, file_path, str(public)), e)
+               "'%s')]:" % (image_name, file_path, str(public))), e
         return False
 
 
         nova_client.images.delete(image_id)
         return True
     except Exception, e:
-        print ("Error [delete_glance_image(nova_client, '%s')]:" % image_id, e)
+        print ("Error [delete_glance_image(nova_client, '%s')]:" % image_id), e
         return False
 
 
     except Exception, e:
         print ("Error [update_cinder_quota(cinder_client, '%s', '%s', '%s'"
                "'%s')]:" % (tenant_id, vols_quota,
-                            snapshots_quota, gigabytes_quota), e)
+                            snapshots_quota, gigabytes_quota)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_volume(cinder_client, '%s', '%s')]:" %
-               (volume_id, str(forced)), e)
+               (volume_id, str(forced))), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [delete_volume_type(cinder_client, '%s')]:" %
-               volume_type, e)
+               volume_type), e
         return False
 
 
         return tenant.id
     except Exception, e:
         print ("Error [create_tenant(cinder_client, '%s', '%s')]:" %
-               (tenant_name, tenant_description), e)
+               (tenant_name, tenant_description)), e
         return False
 
 
         return True
     except Exception, e:
         print ("Error [add_role_user(keystone_client, '%s', '%s'"
-               "'%s')]:" % (user_id, role_id, tenant_id), e)
+               "'%s')]:" % (user_id, role_id, tenant_id)), e
         return False