def remove_instance(self, id): from novaclient.v1_1 import client # nova client v3 raises exception for this nova = client.Client(self.__os_username,self.__os_password,"admin",self.__os_auth_url) sm = ServerManager(nova) instancia = sm.get(id) sm.delete(instancia) return True
def remove_instance(self, id): nova = client.Client(env.OS_USERNAME,env.OS_PASSWORD,"admin",env.OS_AUTH_URL) sm = ServerManager(nova) instancia = sm.get(id) sm.delete(instancia) return True