"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "salt/states/boto_sqs.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.

boto_sqs.py  (salt-2019.2.0):boto_sqs.py  (salt-2019.2.1)
skipping to change at line 137 skipping to change at line 137
return ret return ret
if r['result']: if r['result']:
ret['comment'].append('SQS queue {0} present.'.format(name)) ret['comment'].append('SQS queue {0} present.'.format(name))
else: else:
if __opts__['test']: if __opts__['test']:
ret['result'] = None ret['result'] = None
ret['comment'].append( ret['comment'].append(
'SQS queue {0} is set to be created.'.format(name), 'SQS queue {0} is set to be created.'.format(name),
) )
ret['pchanges'] = {'old': None, 'new': name} ret['changes'] = {'old': None, 'new': name}
return ret return ret
r = __salt__['boto_sqs.create']( r = __salt__['boto_sqs.create'](
name, name,
attributes=attributes, attributes=attributes,
region=region, region=region,
key=key, key=key,
keyid=keyid, keyid=keyid,
profile=profile, profile=profile,
) )
skipping to change at line 226 skipping to change at line 226
)) ))
if __opts__['test']: if __opts__['test']:
ret['result'] = None ret['result'] = None
ret['comment'].append( ret['comment'].append(
'Attribute(s) {0} set to be updated:\n{1}'.format( 'Attribute(s) {0} set to be updated:\n{1}'.format(
attr_names, attr_names,
attributes_diff, attributes_diff,
) )
) )
ret['pchanges'] = {'attributes': {'diff': attributes_diff}} ret['changes'] = {'attributes': {'diff': attributes_diff}}
return ret return ret
r = __salt__['boto_sqs.set_attributes']( r = __salt__['boto_sqs.set_attributes'](
name, name,
attrs_to_set, attrs_to_set,
region=region, region=region,
key=key, key=key,
keyid=keyid, keyid=keyid,
profile=profile, profile=profile,
) )
skipping to change at line 300 skipping to change at line 300
if not r['result']: if not r['result']:
ret['comment'] = 'SQS queue {0} does not exist in {1}.'.format( ret['comment'] = 'SQS queue {0} does not exist in {1}.'.format(
name, name,
region, region,
) )
return ret return ret
if __opts__['test']: if __opts__['test']:
ret['result'] = None ret['result'] = None
ret['comment'] = 'SQS queue {0} is set to be removed.'.format(name) ret['comment'] = 'SQS queue {0} is set to be removed.'.format(name)
ret['pchanges'] = {'old': name, 'new': None} ret['changes'] = {'old': name, 'new': None}
return ret return ret
r = __salt__['boto_sqs.delete']( r = __salt__['boto_sqs.delete'](
name, name,
region=region, region=region,
key=key, key=key,
keyid=keyid, keyid=keyid,
profile=profile, profile=profile,
) )
if 'error' in r: if 'error' in r:
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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