Lint: E111 indentation is not a multiple of four

This commit is contained in:
Joshua Boniface 2020-11-06 19:26:22 -05:00
parent 2d8f684fc8
commit fb4aafcea9
4 changed files with 7 additions and 7 deletions

View File

@ -42,10 +42,10 @@ def isValidIP(ipaddr):
for block in ip4_blocks:
# Check if number is digit, if not checked before calling this function
if not block.isdigit():
return False
return False
tmp = int(block)
if 0 > tmp > 255:
return False
return False
return True
return False

View File

@ -113,7 +113,7 @@ def get_config(store_data, cluster=None):
def get_store(store_path):
store_file = '{}/pvc-cli.json'.format(store_path)
with open(store_file, 'r') as fh:
store_data = json.loads(fh.read())
store_data = json.loads(fh.read())
return store_data
def update_store(store_path, store_data):

View File

@ -214,10 +214,10 @@ def isValidIP(ipaddr):
for block in ip4_blocks:
# Check if number is digit, if not checked before calling this function
if not block.isdigit():
return False
return False
tmp = int(block)
if 0 > tmp > 255:
return False
return False
return True
return False

View File

@ -219,9 +219,9 @@ def remove_osd(zk_conn, logger, osd_id, osd_obj):
osd_string = osd
num_pgs = osd_string['num_pgs']
if num_pgs > 0:
time.sleep(5)
time.sleep(5)
else:
raise
raise
except Exception:
break