remove verbosity of log.info
This commit is contained in:
parent
db8e61e240
commit
71abf43bbf
@ -230,7 +230,6 @@ def enumerate_disk(device):
|
|||||||
for key, value in value_splitter(part):
|
for key, value in value_splitter(part):
|
||||||
d[key.lower()] = value
|
d[key.lower()] = value
|
||||||
|
|
||||||
LOG.info(d)
|
|
||||||
yield d
|
yield d
|
||||||
|
|
||||||
|
|
||||||
@ -493,13 +492,11 @@ def purge_disk(device):
|
|||||||
|
|
||||||
# wipe any file systems first
|
# wipe any file systems first
|
||||||
for d in enumerate_disk(device):
|
for d in enumerate_disk(device):
|
||||||
LOG.info(d)
|
|
||||||
if d['type'] not in ["disk", "crypt"]:
|
if d['type'] not in ["disk", "crypt"]:
|
||||||
wipefs_cmd = [WIPEFS_CMD, "--all", "/dev/%s" % d['name']]
|
wipefs_cmd = [WIPEFS_CMD, "--all", "/dev/%s" % d['name']]
|
||||||
try:
|
try:
|
||||||
LOG.info("Purging filesystem on /dev/%s" % d['name'])
|
LOG.info("Purging filesystem on /dev/%s" % d['name'])
|
||||||
util.subp(wipefs_cmd)
|
util.subp(wipefs_cmd)
|
||||||
LOG.info("Purged filesystem on /dev/%s" % d['name'])
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise Exception("Failed FS purge of /dev/%s" % d['name'])
|
raise Exception("Failed FS purge of /dev/%s" % d['name'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user