diff --git a/IM/CloudInfo.py b/IM/CloudInfo.py index 918914761..cbf6051a6 100644 --- a/IM/CloudInfo.py +++ b/IM/CloudInfo.py @@ -73,7 +73,7 @@ def get_cloud_list(auth_data): #We need an ID, so generate one cloud_item.id = cloud_item.type + str(i) try: - if (auth['host'] != None): + if 'host' in auth and auth['host']: pos = auth['host'].find('://') pos = auth['host'].find(':', pos+1) if pos != -1: diff --git a/IM/VirtualMachine.py b/IM/VirtualMachine.py index 8dba1ba9b..1817ee819 100644 --- a/IM/VirtualMachine.py +++ b/IM/VirtualMachine.py @@ -594,6 +594,7 @@ def check_ctxt_process(self): self.ssh_connect_errors = 0 self.configured = False self.ctxt_pid = None + self.cont_out = initial_count_out + "Too much errors getting the status of ctxt process. Check some network connection problems or if user credentials has been changed." return None if exit_status != 0: