fixed type of variant
This commit is contained in:
parent
a15215586d
commit
14c38fb756
@ -210,7 +210,7 @@ class GlobalProtectConnection(
|
||||
"--protocol=gp",
|
||||
f"--user={auth.value.get('saml-username')}",
|
||||
"--useragent=PAN GlobalProtect",
|
||||
f"--usergroup={options.get('login_target', Variant('x', LoginTarget.PORTAL)).value == LoginTarget.PORTAL and 'portal' or 'gateway'}:prelogin-cookie",
|
||||
f"--usergroup={options.get('login_target', Variant('s', LoginTarget.PORTAL)).value == LoginTarget.PORTAL and 'portal' or 'gateway'}:prelogin-cookie",
|
||||
"--passwd-on-stdin",
|
||||
options.get("hostname").value,
|
||||
"-b",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user