Browse Source

handle failure message

update_ca_key
Edoardo Putti 8 years ago
parent
commit
247237fd2e
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      library/container_file_read.py

+ 6
- 4
library/container_file_read.py View File

@ -77,11 +77,13 @@ def main():
)
else:
result['changed'] = False
result['failed'] = True
result['msg'] = "Target container does not exists"
module.fail_json(
available_container = lxc.list_containers(),
msg = 'Target container does not exists',
name = container_name,
path = file_path,
)
module.exit_json(**result)
if __name__ == '__main__':
main()

Loading…
Cancel
Save