summaryrefslogtreecommitdiff
path: root/bin
diff options
authorRod Smith <rod.smith@canonical.com>2015-08-19 16:57:35 -0400
committerRod Smith <rod.smith@canonical.com>2015-08-19 16:57:35 -0400
commit791cf821db70b4139cb2f2e4ea2bcc5110429907 (patch)
treee63cd7519be27ae69e1e72f0b8539343faf5de9d /bin
parent5230005aea69cfb936c1f95a831e6492ab04f791 (diff)
Modified dmitest script as per Jeff's comment.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dmitest5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/dmitest b/bin/dmitest
index aaaf9d4..3aa2b86 100755
--- a/bin/dmitest
+++ b/bin/dmitest
@@ -48,9 +48,6 @@ import sys
from argparse import ArgumentParser
-# Command to retrieve DMI information
-COMMAND = "dmidecode"
-
def find_in_section(stream, section, label, strings, find_empty):
"""Search for a set of strings on a line in the output.
@@ -241,6 +238,8 @@ def main():
"just the CPU validity test")
args = parser.parse_args()
+ # Command to retrieve DMI information
+ COMMAND = "dmidecode"
try:
if args.dmifile:
print("Reading " + args.dmifile + " as DMI data")