Lint: E111 indentation is not a multiple of four
This commit is contained in:
parent
2d8f684fc8
commit
fb4aafcea9
|
@ -42,10 +42,10 @@ def isValidIP(ipaddr):
|
||||||
for block in ip4_blocks:
|
for block in ip4_blocks:
|
||||||
# Check if number is digit, if not checked before calling this function
|
# Check if number is digit, if not checked before calling this function
|
||||||
if not block.isdigit():
|
if not block.isdigit():
|
||||||
return False
|
return False
|
||||||
tmp = int(block)
|
tmp = int(block)
|
||||||
if 0 > tmp > 255:
|
if 0 > tmp > 255:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ def get_config(store_data, cluster=None):
|
||||||
def get_store(store_path):
|
def get_store(store_path):
|
||||||
store_file = '{}/pvc-cli.json'.format(store_path)
|
store_file = '{}/pvc-cli.json'.format(store_path)
|
||||||
with open(store_file, 'r') as fh:
|
with open(store_file, 'r') as fh:
|
||||||
store_data = json.loads(fh.read())
|
store_data = json.loads(fh.read())
|
||||||
return store_data
|
return store_data
|
||||||
|
|
||||||
def update_store(store_path, store_data):
|
def update_store(store_path, store_data):
|
||||||
|
|
|
@ -214,10 +214,10 @@ def isValidIP(ipaddr):
|
||||||
for block in ip4_blocks:
|
for block in ip4_blocks:
|
||||||
# Check if number is digit, if not checked before calling this function
|
# Check if number is digit, if not checked before calling this function
|
||||||
if not block.isdigit():
|
if not block.isdigit():
|
||||||
return False
|
return False
|
||||||
tmp = int(block)
|
tmp = int(block)
|
||||||
if 0 > tmp > 255:
|
if 0 > tmp > 255:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -219,9 +219,9 @@ def remove_osd(zk_conn, logger, osd_id, osd_obj):
|
||||||
osd_string = osd
|
osd_string = osd
|
||||||
num_pgs = osd_string['num_pgs']
|
num_pgs = osd_string['num_pgs']
|
||||||
if num_pgs > 0:
|
if num_pgs > 0:
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue