fixed type of variant

This commit is contained in:
Ezri Brimhall 2025-05-12 10:07:31 -06:00
parent a15215586d
commit 14c38fb756
Signed by: ezri
GPG Key ID: 058A78E5680C6F24

View File

@ -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",