Sfoglia il codice sorgente

Add rc code to docker_creds module

This commit ensures that successful attempts at creating
registry credentials returns an rc == 0.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1602120
Michael Gugino 7 anni fa
parent
commit
884274fa92
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      roles/lib_utils/library/docker_creds.py

+ 1 - 1
roles/lib_utils/library/docker_creds.py

@@ -224,7 +224,7 @@ def run_module():
     if changed:
         write_config(module, docker_config, dest)
 
-    result = {'changed': changed}
+    result = {'changed': changed, 'rc': 0}
 
     module.exit_json(**result)