Seems this is a python2.7+ syntax:
vip_dict = {v['port_id']: v['name'] for v in self.client.list_vips().get('vips', [])}
My envrionment is python 2.6.
I changed the code to vip_dict = dict( [(obj.port_id, obj.name) for obj in self.client.list_vips().get('vips', [])])
Then the exception was gone.
Seems this is a python2.7+ syntax:
for v in self.client. list_vips( ).get(' vips', [])}
vip_dict = {v['port_id']: v['name']
My envrionment is python 2.6.
vip_ dict = dict(
[(obj. port_id, obj.name)
for obj in self.client. list_vips( ).get(' vips', [])])
I changed the code to
Then the exception was gone.