diff options
author | 2017-07-05 13:57:58 +0000 | |
---|---|---|
committer | 2017-07-05 13:57:58 +0000 | |
commit | e649bd8b445093963bba3b922f0cc762fcc011bc (patch) | |
tree | 0584885cb193fe7702960e69630c22d1fc3f1469 | |
parent | 953c49ee62d444c4c5f7f9c8d47c57e955129204 (diff) | |
parent | 73b978908c85f752862d08a209ee64e013369710 (diff) |
Merge "Add a warning of keypair creation"
-rw-r--r-- | snaps/openstack/create_keypairs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/snaps/openstack/create_keypairs.py b/snaps/openstack/create_keypairs.py index cf5a93d..83cfbbc 100644 --- a/snaps/openstack/create_keypairs.py +++ b/snaps/openstack/create_keypairs.py @@ -75,6 +75,10 @@ class OpenStackKeypair: keys, self.keypair_settings.public_filepath, self.keypair_settings.private_filepath) self.__delete_keys_on_clean = True + elif self.__keypair and not os.path.isfile( + self.keypair_settings.private_filepath): + logger.warn("The public key already exist in OpenStack \ + but the private key file is not found ..") return self.__keypair |