Lint: E201 whitespace after '{'

This commit is contained in:
2020-11-07 12:38:31 -05:00
parent 292ccdd94e
commit e333f2b935
18 changed files with 415 additions and 415 deletions

View File

@ -874,7 +874,7 @@ def ceph_volume_upload(config, pool, volume, image_format, image_file):
bar = UploadProgressBar(image_file, end_message="Parsing file on remote side...", end_nl=False)
upload_data = MultipartEncoder(
fields={ 'file': ('filename', open(image_file, 'rb'), 'application/octet-stream')}
fields={'file': ('filename', open(image_file, 'rb'), 'application/octet-stream')}
)
upload_monitor = MultipartEncoderMonitor(upload_data, bar.update)

View File

@ -432,7 +432,7 @@ def ova_upload(config, name, ova_file, params):
bar = UploadProgressBar(ova_file, end_message="Parsing file on remote side...", end_nl=False)
upload_data = MultipartEncoder(
fields={ 'file': ('filename', open(ova_file, 'rb'), 'application/octet-stream')}
fields={'file': ('filename', open(ova_file, 'rb'), 'application/octet-stream')}
)
upload_monitor = MultipartEncoderMonitor(upload_data, bar.update)

View File

@ -85,7 +85,7 @@ def get_config(store_data, cluster=None):
if os.path.isfile(cfgfile):
host, port, scheme, api_key = read_from_yaml(cfgfile)
else:
return { 'badcfg': True }
return {'badcfg': True }
# Handle an all-wildcard address
if host == '0.0.0.0':
host = '127.0.0.1'