mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
INFRA-1593 - clear up pylint complaints
This commit is contained in:
parent
3afa453cc0
commit
c789580d48
3 changed files with 4 additions and 3 deletions
|
@ -801,10 +801,10 @@ def set_instances(name, instances, test=False, region=None, key=None, keyid=None
|
|||
if test:
|
||||
return bool(add or remove)
|
||||
if len(remove):
|
||||
if deregister_instances(name, list(remove), region, key, keyid, profile) == False:
|
||||
if deregister_instances(name, list(remove), region, key, keyid, profile) is False:
|
||||
ret = False
|
||||
if len(add):
|
||||
if register_instances(name, list(add), region, key, keyid, profile) == False:
|
||||
if register_instances(name, list(add), region, key, keyid, profile) is False:
|
||||
ret = False
|
||||
return ret
|
||||
|
||||
|
|
|
@ -438,6 +438,7 @@ def present(
|
|||
}
|
||||
|
||||
if 'image_name' in launch_config:
|
||||
image_name = launch_config['image_name']
|
||||
args = {'ami_name': image_name, 'region': region, 'key': key,
|
||||
'keyid': keyid, 'profile': profile}
|
||||
image_ids = __salt__['boto_ec2.find_images'](**args)
|
||||
|
|
|
@ -247,9 +247,9 @@ from salt.utils import exactly_one
|
|||
from salt.exceptions import SaltInvocationError
|
||||
import salt.ext.six as six
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Only load if boto is available.
|
||||
|
|
Loading…
Add table
Reference in a new issue