"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "salt/states/keystone_role.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

keystone_role.py  (salt-2019.2.0):keystone_role.py  (salt-2019.2.1)
skipping to change at line 53 skipping to change at line 53
Name of the role Name of the role
description description
An arbitrary description of the role An arbitrary description of the role
''' '''
ret = {'name': name, ret = {'name': name,
'changes': {}, 'changes': {},
'result': True, 'result': True,
'comment': ''} 'comment': ''}
kwargs = __utils__['args.clean_kwargs'](**kwargs)
__salt__['keystoneng.setup_clouds'](auth) __salt__['keystoneng.setup_clouds'](auth)
kwargs['name'] = name kwargs['name'] = name
role = __salt__['keystoneng.role_get'](**kwargs) role = __salt__['keystoneng.role_get'](**kwargs)
if not role: if not role:
if __opts__['test'] is True: if __opts__['test'] is True:
ret['result'] = None ret['result'] = None
ret['changes'] = kwargs ret['changes'] = kwargs
ret['pchanges'] = ret['changes']
ret['comment'] = 'Role will be created.' ret['comment'] = 'Role will be created.'
return ret return ret
role = __salt__['keystoneng.role_create'](**kwargs) role = __salt__['keystoneng.role_create'](**kwargs)
ret['changes']['id'] = role.id ret['changes']['id'] = role.id
ret['changes']['name'] = role.name ret['changes']['name'] = role.name
ret['comment'] = 'Created role' ret['comment'] = 'Created role'
return ret return ret
# NOTE(SamYaple): Update support pending https://review.openstack.org/#/c/49 6992/ # NOTE(SamYaple): Update support pending https://review.openstack.org/#/c/49 6992/
return ret return ret
skipping to change at line 95 skipping to change at line 96
__salt__['keystoneng.setup_clouds'](auth) __salt__['keystoneng.setup_clouds'](auth)
kwargs['name'] = name kwargs['name'] = name
role = __salt__['keystoneng.role_get'](**kwargs) role = __salt__['keystoneng.role_get'](**kwargs)
if role: if role:
if __opts__['test'] is True: if __opts__['test'] is True:
ret['result'] = None ret['result'] = None
ret['changes'] = {'id': role.id} ret['changes'] = {'id': role.id}
ret['pchanges'] = ret['changes']
ret['comment'] = 'Role will be deleted.' ret['comment'] = 'Role will be deleted.'
return ret return ret
__salt__['keystoneng.role_delete'](name=role) __salt__['keystoneng.role_delete'](name=role)
ret['changes']['id'] = role.id ret['changes']['id'] = role.id
ret['comment'] = 'Deleted role' ret['comment'] = 'Deleted role'
return ret return ret
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)