diff options
Diffstat (limited to 'snaps/openstack/create_keypairs.py')
-rw-r--r-- | snaps/openstack/create_keypairs.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/snaps/openstack/create_keypairs.py b/snaps/openstack/create_keypairs.py index 83cfbbc..03ff7ec 100644 --- a/snaps/openstack/create_keypairs.py +++ b/snaps/openstack/create_keypairs.py @@ -130,4 +130,10 @@ class KeypairSettings: self.private_filepath = kwargs.get('private_filepath') if not self.name: - raise Exception('Name is a required attribute') + raise KeypairSettingsError('Name is a required attribute') + + +class KeypairSettingsError(Exception): + """ + Exception to be thrown when keypair settings are incorrect + """ |