@@ 76-88 (lines=13) @@ | ||
73 | username = None |
|
74 | password = None |
|
75 | ||
76 | if args.protocol == PROTOCOL_OSP: |
|
77 | protocol = Osp(connection, transform=transform) |
|
78 | global_vars['osp'] = protocol |
|
79 | global_vars['__name__'] = '__osp__' |
|
80 | else: |
|
81 | protocol = Gmp(connection, transform=transform) |
|
82 | global_vars['gmp'] = protocol |
|
83 | global_vars['__name__'] = '__gmp__' |
|
84 | ||
85 | if args.gmp_username: |
|
86 | (username, password) = authenticate( |
|
87 | protocol, username=args.gmp_username, |
|
88 | password=args.gmp_password) |
|
89 | ||
90 | argv = [os.path.abspath(args.scriptname), *args.scriptargs] |
|
91 |
@@ 107-119 (lines=13) @@ | ||
104 | username = None |
|
105 | password = None |
|
106 | ||
107 | if args.protocol == PROTOCOL_OSP: |
|
108 | protocol = Osp(connection, transform=transform) |
|
109 | global_vars['osp'] = protocol |
|
110 | global_vars['__name__'] = '__osp__' |
|
111 | else: |
|
112 | protocol = Gmp(connection, transform=transform) |
|
113 | global_vars['gmp'] = protocol |
|
114 | global_vars['__name__'] = '__gmp__' |
|
115 | ||
116 | if args.gmp_username: |
|
117 | (username, password) = authenticate( |
|
118 | protocol, username=args.gmp_username, |
|
119 | password=args.gmp_password) |
|
120 | ||
121 | shell_args = Namespace( |
|
122 | username=username, password=password) |