Advertisement
Guest User

Untitled

a guest
May 7th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. roster:
  2. dns-dns-01.inf.us-west-2.aws.acme.com:
  3. host: 10.10.32.10
  4. sudo: True
  5. grains:
  6. is_ssh: 1
  7.  
  8.  
  9. command:
  10. salt-ssh -i dns-dns-01.inf.us-west-2.aws.acme.com test.ping
  11.  
  12. Output:
  13. [ERROR ] An un-handled exception was caught by salt's global exception handler:
  14. TypeError: object of type 'NoneType' has no len()
  15. Traceback (most recent call last):
  16. File "/usr/bin/salt-ssh", line 10, in <module>
  17. salt_ssh()
  18. File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 425, in salt_ssh
  19. client.run()
  20. File "/usr/lib/python2.7/site-packages/salt/cli/ssh.py", line 23, in run
  21. ssh = salt.client.ssh.SSH(self.config)
  22. File "/usr/lib/python2.7/site-packages/salt/client/ssh/__init__.py", line 235, in __init__
  23. self.tgt_type)
  24. File "/usr/lib/python2.7/site-packages/salt/roster/__init__.py", line 105, in targets
  25. targets.update(self.rosters[f_str](tgt, tgt_type))
  26. File "/usr/lib/python2.7/site-packages/salt/roster/flat.py", line 50, in targets
  27. return rmatcher.targets()
  28. File "/usr/lib/python2.7/site-packages/salt/roster/flat.py", line 68, in targets
  29. return getattr(self, 'ret_{0}_minions'.format(self.tgt_type))()
  30. File "/usr/lib/python2.7/site-packages/salt/roster/flat.py", line 78, in ret_glob_minions
  31. if fnmatch.fnmatch(minion, self.tgt):
  32. File "/usr/lib64/python2.7/fnmatch.py", line 43, in fnmatch
  33. return fnmatchcase(name, pat)
  34. File "/usr/lib64/python2.7/fnmatch.py", line 79, in fnmatchcase
  35. res = translate(pat)
  36. File "/usr/lib64/python2.7/fnmatch.py", line 91, in translate
  37. i, n = 0, len(pat)
  38. TypeError: object of type 'NoneType' has no len()
  39. Traceback (most recent call last):
  40. File "/usr/bin/salt-ssh", line 10, in <module>
  41. salt_ssh()
  42. File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 425, in salt_ssh
  43. client.run()
  44. File "/usr/lib/python2.7/site-packages/salt/cli/ssh.py", line 23, in run
  45. ssh = salt.client.ssh.SSH(self.config)
  46. File "/usr/lib/python2.7/site-packages/salt/client/ssh/__init__.py", line 235, in __init__
  47. self.tgt_type)
  48. File "/usr/lib/python2.7/site-packages/salt/roster/__init__.py", line 105, in targets
  49. targets.update(self.rosters[f_str](tgt, tgt_type))
  50. File "/usr/lib/python2.7/site-packages/salt/roster/flat.py", line 50, in targets
  51. return rmatcher.targets()
  52. File "/usr/lib/python2.7/site-packages/salt/roster/flat.py", line 68, in targets
  53. return getattr(self, 'ret_{0}_minions'.format(self.tgt_type))()
  54. File "/usr/lib/python2.7/site-packages/salt/roster/flat.py", line 78, in ret_glob_minions
  55. if fnmatch.fnmatch(minion, self.tgt):
  56. File "/usr/lib64/python2.7/fnmatch.py", line 43, in fnmatch
  57. return fnmatchcase(name, pat)
  58. File "/usr/lib64/python2.7/fnmatch.py", line 79, in fnmatchcase
  59. res = translate(pat)
  60. File "/usr/lib64/python2.7/fnmatch.py", line 91, in translate
  61. i, n = 0, len(pat)
  62. TypeError: object of type 'NoneType' has no len()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement