mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fixing lint errors in gce driver
This commit is contained in:
parent
45ddfe501b
commit
50b5c08ccd
@ -679,7 +679,6 @@ def create_fwrule(kwargs=None, call=None):
|
||||
)
|
||||
return False
|
||||
|
||||
|
||||
name = kwargs['name']
|
||||
network_name = kwargs.get('network', 'default')
|
||||
allow = _parse_allow(kwargs['allow'])
|
||||
@ -1348,7 +1347,7 @@ def create_disk(kwargs=None, call=None):
|
||||
return False
|
||||
|
||||
if 'size' not in kwargs:
|
||||
if ('image' not in kwargs and 'snapshot' not in kwargs):
|
||||
if 'image' not in kwargs and 'snapshot' not in kwargs:
|
||||
log.error(
|
||||
'Must specify image, snapshot, or size.'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user