Added log message with update suggestion for libcloud

Log message notifies user of old libcloud version and inability to get
projects.
This commit is contained in:
Jochen Breuer 2016-03-08 17:10:06 +01:00
parent 72eab406cd
commit 87f9534fce

View File

@ -206,6 +206,7 @@ def get_project(conn, vm_):
projects = conn.ex_list_projects()
except AttributeError:
# with versions <0.15 of libcloud this is causing an AttributeError.
log.warning('Cannot get projects, you may need to update libcloud to 0.15 or later')
return False
projid = config.get_cloud_config_value('projectid', vm_, __opts__)