Fix "Q003 Change outer quotes to avoid escaping inner quotes" and
"Q000 Double quotes found but single quotes preferred" warnings.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
if re.ret == 0 and \
'neither deny nor allow list' in re.stderr:
res = re.stdout
- elif re.ret == 0 and 'ERROR: can\'t get' in re.stderr:
+ elif re.ret == 0 and "ERROR: can\'t get" in re.stderr:
res = re.stdout
else:
raise (re)
# all of the controllers exist, Yippee
return True
else:
- raise ValueError("Unsupported type: {}".format(type(ctrl_name)))
+ raise ValueError('Unsupported type: {}'.format(type(ctrl_name)))
# Method to enable or disable controllers in the subtree control file
@staticmethod