aws-ssh-utils 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws-ssh-utils
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Easy AWS SSHing
5
5
  Project-URL: Homepage, https://github.com/mvanderlee/aws-ssh-utils
6
6
  Author-email: Michiel Vanderlee <jmt.vanderlee@gmail.com>
@@ -0,0 +1 @@
1
+ __version__ = "0.2.3"
@@ -583,10 +583,14 @@ def get_opkssh_key_file(provider: str) -> str:
583
583
  "-i",
584
584
  opkssh_key_file,
585
585
  ]
586
- process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) # noqa: S602
586
+ process = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # noqa: S603
587
587
  process.wait()
588
588
  if process.returncode != 0:
589
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())
590
594
  sys.exit(process.returncode)
591
595
 
592
596
  return opkssh_key_file
@@ -1 +0,0 @@
1
- __version__ = "0.2.2"
File without changes
File without changes
File without changes