Make sure variable is a dictionary before popping something from it.

This commit is contained in:
Nitin Madhok 2015-08-10 11:14:18 -04:00
parent 2545df052a
commit 0f2b5f8ac8

View file

@ -2104,7 +2104,7 @@ class Map(Cloud):
output[name] = self.create(
profile, local_master=local_master
)
if self.opts.get('show_deploy_args', False) is False:
if self.opts.get('show_deploy_args', False) is False and isinstance(output[name], dict):
output[name].pop('deploy_kwargs', None)
except SaltCloudException as exc:
log.error(