Skip to content

Commit

Permalink
Handle a couple of arguments better (Azure) (#32683)
Browse files Browse the repository at this point in the history
  • Loading branch information
techhat authored and Mike Place committed Apr 19, 2016
1 parent aaa03bc commit 7cdd512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/cloud/clouds/msazure.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def list_nodes(conn=None, call=None):
for node in nodes:
ret[node] = {'name': node}
for prop in ('id', 'image', 'size', 'state', 'private_ips', 'public_ips'):
ret[node][prop] = nodes[node][prop]
ret[node][prop] = nodes[node].get(prop)
return ret


Expand Down Expand Up @@ -571,6 +571,7 @@ def create(vm_):
# Deleting two useless keywords
del vm_kwargs['deployment_slot']
del vm_kwargs['label']
del vm_kwargs['virtual_network_name']
result = conn.add_role(**vm_kwargs)
_wait_for_async(conn, result.request_id)
except Exception as exc:
Expand Down

0 comments on commit 7cdd512

Please sign in to comment.