cmd.append(vg_name)
lvs_start = time.time()
- (out, err) = putils.execute(*cmd,
- root_helper=root_helper,
- run_as_root=True)
+ (out, _err) = putils.execute(*cmd,
+ root_helper=root_helper,
+ run_as_root=True)
total_time = time.time() - lvs_start
if total_time > 60:
- LOG.warning(_('Took %s seconds to get logical volumes.'),
+ LOG.warning(_LW('Took %s seconds to get logical volumes.'),
total_time)
lv_list = []
cmd.append(vg_name)
start_vgs = time.time()
- (out, err) = putils.execute(*cmd,
- root_helper=root_helper,
- run_as_root=True)
+ (out, _err) = putils.execute(*cmd,
+ root_helper=root_helper,
+ run_as_root=True)
total_time = time.time() - start_vgs
if total_time > 60:
- LOG.warning(_('Took %s seconds to get volume groups.'), total_time)
+ LOG.warning(_LW('Took %s seconds to get '
+ 'volume groups.'), total_time)
vg_list = []
if out is not None: