aws-ssh-utils 0.2.1__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/PKG-INFO +1 -1
- aws_ssh_utils-0.2.3/aws_ssh_utils/__init__.py +1 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/aws_ssh_utils/ssh.py +13 -2
- aws_ssh_utils-0.2.1/aws_ssh_utils/__init__.py +0 -1
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/.gitignore +0 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/LICENSE +0 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/README.md +0 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/aws_ssh_utils/emr_utils.py +0 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/aws_ssh_utils/interactive_ssh.py +0 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/aws_ssh_utils/py.typed +0 -0
- {aws_ssh_utils-0.2.1 → aws_ssh_utils-0.2.3}/pyproject.toml +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.3"
|
|
@@ -575,11 +575,22 @@ def get_opkssh_key_file(provider: str) -> str:
|
|
|
575
575
|
logger.info('Found existing opkssh key')
|
|
576
576
|
else:
|
|
577
577
|
logger.info('Detected opkssh, logging in')
|
|
578
|
-
cmd =
|
|
579
|
-
|
|
578
|
+
cmd = [
|
|
579
|
+
"opkssh",
|
|
580
|
+
"login",
|
|
581
|
+
"--provider",
|
|
582
|
+
provider,
|
|
583
|
+
"-i",
|
|
584
|
+
opkssh_key_file,
|
|
585
|
+
]
|
|
586
|
+
process = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # noqa: S603
|
|
580
587
|
process.wait()
|
|
581
588
|
if process.returncode != 0:
|
|
582
589
|
logger.error('Failed to authenticate using opkssh')
|
|
590
|
+
if process.stdout:
|
|
591
|
+
logger.info(process.stdout.read().decode())
|
|
592
|
+
if process.stderr:
|
|
593
|
+
logger.error(process.stderr.read().decode())
|
|
583
594
|
sys.exit(process.returncode)
|
|
584
595
|
|
|
585
596
|
return opkssh_key_file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|