Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixops
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 204cafd961c5
Choose a base ref
...
head repository: NixOS/nixops
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e795b963f626
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 30, 2018

  1. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    2b4ebee View commit details

Commits on Dec 4, 2018

  1. Merge pull request #1058 from dorrahadrich/master

    adding check to the key-pair
    AmineChikhaoui authored Dec 4, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e795b96 View commit details
Showing with 9 additions and 0 deletions.
  1. +9 −0 nixops/resources/ec2_keypair.py
9 changes: 9 additions & 0 deletions nixops/resources/ec2_keypair.py
Original file line number Diff line number Diff line change
@@ -127,3 +127,12 @@ def keypair_used():
self._conn.delete_key_pair(self.keypair_name)

return True

def check(self):
self.connect()
try:
kp = self._conn.get_key_pair(self.keypair_name)
except IndexError as e:
kp = None
if kp is None:
self.state = self.MISSING