Advertisement
Guest User

Untitled

a guest
Nov 13th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Pillar init.sls file
  2.  
  3. TENANTS:
  4. admin:
  5. DESCRIPTION: "The AGN Administration Tenant"
  6. service:
  7. DESCRIPTION: "The AGN Service Tenant"
  8.  
  9.  
  10. output from http://yaml-online-parser.appspot.com (converted to python)
  11.  
  12. {'TENANTS': {'admin': {'DESCRIPTION': 'The AGN Administration Tenant'},
  13. 'service': {'DESCRIPTION': 'The AGN Service Tenant'}}}
  14.  
  15. output from python log from a saltstack module
  16.  
  17. OrderedDict([('admin', "{'DESCRIPTION': 'The AGN Administration Tenant'}"), ('service', "{'DESCRIPTION': 'The AGN Service Tenant'}")])
  18.  
  19. error from private saltstack module that works in 16.4 (when it wasn't interpreted as ordered dictionary)
  20.  
  21. File "/var/cache/salt/minion/extmods/modules/agn_keystone.py", line 123, in create_required_tenants
  22. desc=tenants_dict[tenant]['DESCRIPTION']
  23. TypeError: string indices must be integers, not str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement