mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2019.2' into merge-2018.3
This commit is contained in:
commit
95c505a1fa
4 changed files with 4 additions and 4 deletions
|
@ -782,7 +782,7 @@ def get_template_image(kwargs=None, call=None):
|
|||
ret = list_templates()[name]['template']['disk']['image']
|
||||
except KeyError:
|
||||
raise SaltCloudSystemExit(
|
||||
'The image for template \'{1}\' could not be found.'.format(name)
|
||||
'The image for template \'{0}\' could not be found.'.format(name)
|
||||
)
|
||||
|
||||
return ret
|
||||
|
|
|
@ -125,7 +125,7 @@ def availability_set_create_or_update(name, resource_group, **kwargs): # pylint
|
|||
try:
|
||||
setmodel = __utils__['azurearm.create_object_model']('compute', 'AvailabilitySet', **kwargs)
|
||||
except TypeError as exc:
|
||||
result = {'error': 'The object model could not be built. ({1})'.format(str(exc))}
|
||||
result = {'error': 'The object model could not be built. ({0})'.format(str(exc))}
|
||||
return result
|
||||
|
||||
try:
|
||||
|
|
|
@ -440,7 +440,7 @@ def _dataset_present(dataset_type, name, volume_size=None, sparse=False, create_
|
|||
## check we have valid filesystem name/volume name/clone snapshot
|
||||
if not __utils__['zfs.is_dataset'](name):
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'invalid dataset name: {1}'.format(name)
|
||||
ret['comment'] = 'invalid dataset name: {0}'.format(name)
|
||||
return ret
|
||||
|
||||
if cloned_from and not __utils__['zfs.is_snapshot'](cloned_from):
|
||||
|
|
|
@ -1443,7 +1443,7 @@ class NotItem(SchemaItem):
|
|||
if not isinstance(self.item, (Schema, SchemaItem)):
|
||||
raise RuntimeError(
|
||||
'The passed item be of type Schema, SchemaItem or '
|
||||
'BaseSchemaItem, not \'{1}\''.format(type(self.item))
|
||||
'BaseSchemaItem, not \'{0}\''.format(type(self.item))
|
||||
)
|
||||
|
||||
def serialize(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue