From c8068508b1ebc46f0080ceae843e01d7739f3289 Mon Sep 17 00:00:00 2001 From: micafer Date: Mon, 30 Nov 2015 12:10:34 +0100 Subject: [PATCH] Minor changes --- IM/CloudInfo.py | 2 +- IM/VirtualMachine.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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: