Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if user:
- # use cloud.get_user to save us from bad searching by name
- data['user'] = 'admin'
- #data['user'] = self.get_user(user, filters=search_args)
- if group:
- data['group'] = self.identity.find_group(
- group, ignore_missing=False, **search_args)
- if data.get('user') and data.get('group'):
- raise exc.OpenStackCloudException(
- 'Specify either a group or a user, not both')
- if data.get('user') is None and data.get('group') is None:
- print ("TEST DEBUG USER -- 3")
- print (data.get('user'))
- print (data.get('group'))
- raise exc.OpenStackCloudException(
- 'Must specify either a user or a group')
- if project is None and domain is None and system is None:
- raise exc.OpenStackCloudException(
- 'Must specify either a domain, project or system')
Advertisement
Add Comment
Please, Sign In to add comment