Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This ansible(via 2.4.1 Centos 7) task:
- oc:
- state: present
- token: "{{token.stdout}}"
- validate_certs: false
- inline:
- data:
- .dockercfg: eyJkb2NrZXIubGFiLmMtY29yLmNvbTo1MDAwIjp7InVzZXJuYW1lIjoibWRjIiwicGFzc3dvcmQiOiJuY3ViZXN5cyIsImVtYWlsIjoibnVsbEBsb2NhaG9zdCIsImF1dGgiOiJiV1JqT201amRXSmxjM2x6In19
- kind: Secret
- metadata:
- creationTimestamp: null
- name: mdc-docker
- type: kubernetes.io/dockercfg
- ends up with this error:
- The full traceback is:
- Traceback (most recent call last):
- File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 470, in <module>
- main()
- File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 435, in main
- exists = oc.exists(resource)
- File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 246, in exists
- _, code = self.connect(named_resource.url(), 'get')
- File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 191, in url
- url += self.namespace()
- TypeError: cannot concatenate 'str' and 'NoneType' objects
- fatal: [localhost]: FAILED! => {
- "changed": false,
- "failed": true,
- "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_ovBTK3/ansible_module_oc.py\", line 470, in <module>\n main()\n File \"/tmp/ansible_ovBTK3/ansible_module_oc.py\", line 435, in main\n exists = oc.exists(resource)\n File \"/tmp/ansible_ovBTK3/ansible_module_oc.py\", line 246, in exists\n _, code = self.connect(named_resource.url(), 'get')\n File \"/tmp/ansible_ovBTK3/ansible_module_oc.py\", line 191, in url\n url += self.namespace()\nTypeError: cannot concatenate 'str' and 'NoneType' objects\n",
- "module_stdout": "",
- "rc": 0
- }
- MSG:
- MODULE FAILURE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement