You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server and Client have different configuration files
Configuration file generator and reader script
Updated scripts to use configuration files
Updated some script options
Moved install from lib to lib/GUFI
Updated RPMs
Added configuration script to both Server and Client
pre-install calls pip
Added *.pyc to .gitignore
parser.add_argument('--known_hosts', dest='known_hosts', type=str, default=['/etc/ssh/ssh_known_hosts'], action='append', help='File containing hosts known to the system')
119
-
parser.add_argument('--hostkey', dest='hostkey', type=str, default='/etc/ssh/ssh_host_rsa_key.pub', help='Public key of host')
120
-
parser.add_argument('--paramiko', dest='paramiko', type=str, default=os.path.join(INSTALL_PREFIX, 'paramiko'), help='Location of paramiko on client machine')
121
-
parser.add_argument('--gufi_bin', dest='gufi_bin', type=str, default=os.path.join(INSTALL_PREFIX, 'bin'), help='GUFI binaries directory on server')
122
-
parser.add_argument('hostname', type=str, help='GUFI server hostname')
123
-
parser.add_argument('gufi_tree', type=str, help='GUFI tree path')
124
-
parser.add_argument('tool', type=str, choices=TOOLS.keys(), help='GUFI tool to use')
125
-
parser.add_argument('args', nargs='*', default=[], help='Arguments to pass to the GUFI tool')
126
-
127
-
ifargsisNone:
128
-
args=sys.argv[1:]
129
-
130
-
returnparser.parse_args(args)
131
-
132
-
defcontact_server(args):
98
+
iflen(cmd_args) ==0:
99
+
sys.stderr.write('Bad command line arguments\n')
100
+
sys.exit(1)
101
+
102
+
tool=os.path.basename(cmd_args[0])
103
+
104
+
args=Args()
105
+
106
+
i=1
107
+
whilei<len(cmd_args):
108
+
if (cmd_args[i] =='--help') or (cmd_args[i] =='-h'):
0 commit comments