We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4b4be commit a299a86Copy full SHA for a299a86
modules/TerraformController.py
@@ -367,8 +367,13 @@ def list_machines(self):
367
368
else:
369
print("ERROR: Can't find configured Attack Range Instances")
370
- pyperclip.copy(self.config['attack_range_password'])
371
- print("* attack_range password has been copied to your clipboard")
+
+ # copy password into clipboard
372
+ try:
373
+ pyperclip.copy(self.config['attack_range_password'])
374
+ print("* attack_range password has been copied to your clipboard")
375
+ except Exception as e:
376
+ self.log.error("not able to copy password to clipboard")
377
print()
378
379
0 commit comments