mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #52004 from chdamianos/fix-constants-comparison
Fixed comparison of `None` with constants
This commit is contained in:
commit
01bcff087e
2 changed files with 3 additions and 3 deletions
|
@ -1828,7 +1828,7 @@ def create_disk(kwargs=None, call=None):
|
|||
)
|
||||
return False
|
||||
|
||||
if 'size' is None and 'image' is None and 'snapshot' is None:
|
||||
if size is None and image is None and snapshot is None:
|
||||
log.error(
|
||||
'Must specify image, snapshot, or size.'
|
||||
)
|
||||
|
|
|
@ -1256,9 +1256,9 @@ def edit_team(name,
|
|||
parameters = {}
|
||||
if name is not None:
|
||||
parameters['name'] = name
|
||||
if 'description' is not None:
|
||||
if description is not None:
|
||||
parameters['description'] = description
|
||||
if 'privacy' is not None:
|
||||
if privacy is not None:
|
||||
parameters['privacy'] = privacy
|
||||
if permission is not None:
|
||||
parameters['permission'] = permission
|
||||
|
|
Loading…
Add table
Reference in a new issue