Merge pull request #1548 from vvanholl/devel

Do not fail when action is delete and volume is not present
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 14f0ad07ab

@ -433,7 +433,7 @@ def main():
else: else:
module.fail_json(msg='failed to create volume %s' % volume_name) module.fail_json(msg='failed to create volume %s' % volume_name)
if volume_name not in volumes: if action != 'delete' and volume_name not in volumes:
module.fail_json(msg='volume not found %s' % volume_name) module.fail_json(msg='volume not found %s' % volume_name)
if action == 'started': if action == 'started':

Loading…
Cancel
Save