Fixed a few pep8 nits

This commit is contained in:
Robert Tingirica
2014-06-11 16:45:22 +03:00
parent bc5eb5f554
commit 184f183311
3 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ class ExtendVolumesPlugin(base.BasePlugin):
if volume_idxs is not None: if volume_idxs is not None:
volume_name = ctypes.wstring_at(volume_prop.pwszName) volume_name = ctypes.wstring_at(volume_prop.pwszName)
volume_idx = self._get_volume_index(volume_name) volume_idx = self._get_volume_index(volume_name)
if not volume_idx in volume_idxs: if volume_idx not in volume_idxs:
extend_volume = False extend_volume = False
if extend_volume: if extend_volume:

View File

@@ -161,7 +161,7 @@ class CryptManager(object):
key_type = pub_key[offset:offset + key_type_len] key_type = pub_key[offset:offset + key_type_len]
offset += key_type_len offset += key_type_len
if not key_type in ['ssh-rsa', 'rsa', 'rsa1']: if key_type not in ['ssh-rsa', 'rsa', 'rsa1']:
raise CryptException('Unsupported SSH key type "%s". ' raise CryptException('Unsupported SSH key type "%s". '
'Only RSA keys are currently supported' 'Only RSA keys are currently supported'
% key_type) % key_type)