Advertisement
Guest User

ansible oc module failure

a guest
Nov 20th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. This ansible(via 2.4.1 Centos 7) task:
  2. oc:
  3. state: present
  4. token: "{{token.stdout}}"
  5. validate_certs: false
  6. inline:
  7. data:
  8. .dockercfg: eyJkb2NrZXIubGFiLmMtY29yLmNvbTo1MDAwIjp7InVzZXJuYW1lIjoibWRjIiwicGFzc3dvcmQiOiJuY3ViZXN5cyIsImVtYWlsIjoibnVsbEBsb2NhaG9zdCIsImF1dGgiOiJiV1JqT201amRXSmxjM2x6In19
  9. kind: Secret
  10. metadata:
  11. creationTimestamp: null
  12. name: mdc-docker
  13. type: kubernetes.io/dockercfg
  14.  
  15. ends up with this error:
  16. The full traceback is:
  17. Traceback (most recent call last):
  18. File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 470, in <module>
  19. main()
  20. File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 435, in main
  21. exists = oc.exists(resource)
  22. File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 246, in exists
  23. _, code = self.connect(named_resource.url(), 'get')
  24. File "/tmp/ansible_ovBTK3/ansible_module_oc.py", line 191, in url
  25. url += self.namespace()
  26. TypeError: cannot concatenate 'str' and 'NoneType' objects
  27.  
  28. fatal: [localhost]: FAILED! => {
  29. "changed": false,
  30. "failed": true,
  31. "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",
  32. "module_stdout": "",
  33. "rc": 0
  34. }
  35.  
  36. MSG:
  37.  
  38. MODULE FAILURE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement