Lint: E201 whitespace after '{'
This commit is contained in:
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user