summaryrefslogtreecommitdiff
diff options
authorAdrian Lane <adrian.lane@canonical.com>2020-04-03 11:48:34 -0700
committerAdrian Lane <adrian.lane@canonical.com>2020-04-03 11:48:34 -0700
commita99e0f4d1d694abf1955a4c1a34d549702518daa (patch)
tree3114cafc3f78076fbafe45041666e3d7154892f4
parent4ddde33b0a309d82f899f38e17d2fdd32a869cc5 (diff)
Minor syntax/comment changes
-rwxr-xr-xbin/ipmi_test.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py
index 9de4b5d8..2d6d8b2c 100755
--- a/bin/ipmi_test.py
+++ b/bin/ipmi_test.py
@@ -233,20 +233,19 @@ class IpmiTest(object):
def main():
# instantiate argparse as parser
parser = argparse.ArgumentParser()
- parser.add_argument("-d", "--debug", action="store_true",
- help="Debug/verbose output (stdout/stderr)")
- parser.add_argument("-q", "--quiet", action="store_true",
- help="Suppress output.")
+ parser.add_argument('-d', '--debug', action='store_true',
+ help='Debug/verbose output (stdout/stderr)')
+ parser.add_argument('-q', '--quiet', action='store_true',
+ help='Suppress output.')
args = parser.parse_args()
- # Set up the logging system
+ # logging subsystem
if not args.quiet or args.debug:
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
format = ''
date_format = '%Y-%m-%d %H:%M:%S'
- # If we DO want console output
if not args.quiet:
console_handler = logging.StreamHandler()
console_handler.setFormatter(