Skip to content

Commit 009e8e8

Browse files
author
László Vaskó
committed
Merge remote-tracking branch 'origin/develop'
2 parents f6fe7db + 89c715e commit 009e8e8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

openconnect_sso/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.2.1"
22
__description__ = (
33
"Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication"
44
)

openconnect_sso/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def _run(args):
6363

6464
if cfg.default_profile and not args.use_profile_selector:
6565
selected_profile = cfg.default_profile
66-
elif args.use_profile_selector:
66+
elif args.use_profile_selector or args.profile_path:
6767
profiles = get_profiles(Path(args.profile_path))
6868
if not profiles:
6969
logger.error("No profile found")

openconnect_sso/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def main():
102102
)
103103

104104
if not args.profile_path and not args.server and not config.load().default_profile:
105-
if os.path.exists("/opt/cisco/anyconnect/profiles"):
106-
args.profile_path = "/opt/cisco/anyconnect/profiles"
105+
if os.path.exists("/opt/cisco/anyconnect/profile"):
106+
args.profile_path = "/opt/cisco/anyconnect/profile"
107107
else:
108108
parser.error(
109109
"No Anyconnect profile can be found. One of --profile or --server arguments required."

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openconnect-sso"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication"
55
authors = ["László Vaskó <[email protected]>"]
66
readme = "README.md"

tests/test_openconnect_sso.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
def test_version():
5-
assert __version__ == '0.2.0'
5+
assert __version__ == '0.2.1'

0 commit comments

Comments
 (0)