We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b901a4 commit acc55aaCopy full SHA for acc55aa
1 file changed
hwinfo/tools/inspector.py
@@ -5,6 +5,7 @@
5
import paramiko
6
import subprocess
7
import os
8
+import sys
9
10
from hwinfo.pci import PCIDevice
11
from hwinfo.pci.lspci import *
@@ -184,6 +185,11 @@ def main():
184
185
if args.logs:
186
host = HostFromLogs(args.logs)
187
else:
188
+ if args.machine:
189
+ if not args.username or not args.password:
190
+ print "Error: you must specify a username and password to query a remote machine."
191
+ sys.exit(1)
192
+
193
host = Host(args.machine, args.username, args.password)
194
195
options = []
0 commit comments