diff options
author | Matt Clay <matt@mystile.com> | 2017-01-27 15:45:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-27 15:45:23 -0800 |
commit | 95789f3949b01c79c729315ff375d0e759f64970 (patch) | |
tree | f1e2ed9fcc6aaa5e1ed56a20dd1e609e55489cb6 /lib/ansible/modules/cloud/packet | |
parent | 802fbcadf855db34bfdbcec0c6310c537ff3a5d0 (diff) | |
download | ansible-95789f3949b01c79c729315ff375d0e759f64970.tar.gz |
PEP 8 whitespace cleanup. (#20783)
* PEP 8 E271 whitespace cleanup.
* PEP 8 W293 whitespace cleanup.
* Fix whitespace issue from recent PR.
Diffstat (limited to 'lib/ansible/modules/cloud/packet')
-rw-r--r-- | lib/ansible/modules/cloud/packet/packet_device.py | 6 | ||||
-rw-r--r-- | lib/ansible/modules/cloud/packet/packet_sshkey.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/modules/cloud/packet/packet_device.py b/lib/ansible/modules/cloud/packet/packet_device.py index 7a6501013d..e1f34b1ed3 100644 --- a/lib/ansible/modules/cloud/packet/packet_device.py +++ b/lib/ansible/modules/cloud/packet/packet_device.py @@ -346,7 +346,7 @@ def get_hostname_list(module): _msg = ("If you set count>1, you should only specify one hostname " "with the %d formatter, not a list of hostnames.") raise Exception(_msg) - + if (len(hostnames) == 1) and (count > 0): hostname_spec = hostnames[0] count_range = range(count_offset, count_offset + count) @@ -382,7 +382,7 @@ def get_device_id_list(module): raise Exception("You specified too many devices, max is %d" % MAX_DEVICES) return device_ids - + def create_single_device(module, packet_conn, hostname): @@ -430,7 +430,7 @@ def wait_for_ips(module, packet_conn, created_devices): if all_have_public_ip(refreshed): return refreshed time.sleep(5) - + raise Exception("Waiting for IP assignment timed out. Hostnames: %s" % [d.hostname for d in created_devices]) diff --git a/lib/ansible/modules/cloud/packet/packet_sshkey.py b/lib/ansible/modules/cloud/packet/packet_sshkey.py index db82264869..6f362e2bd2 100644 --- a/lib/ansible/modules/cloud/packet/packet_sshkey.py +++ b/lib/ansible/modules/cloud/packet/packet_sshkey.py @@ -204,7 +204,7 @@ def act_on_sshkeys(target_state, module, packet_conn): new_key_response = packet_conn.create_ssh_key( newkey['label'], newkey['key']) changed = True - + matching_sshkeys.append(new_key_response) else: # state is 'absent' => delete mathcing keys |