diff --git a/cloudbaseinit/metadata/services/nocloudservice.py b/cloudbaseinit/metadata/services/nocloudservice.py index 591dd03c..d8c58dc9 100644 --- a/cloudbaseinit/metadata/services/nocloudservice.py +++ b/cloudbaseinit/metadata/services/nocloudservice.py @@ -302,6 +302,12 @@ def get_host_name(self): def get_instance_id(self): return self._get_meta_data().get('instance-id') + def get_admin_username(self): + return self._get_meta_data().get('admin-username') + + def get_admin_password(self): + return self._get_meta_data().get('admin-password') + def get_public_keys(self): raw_ssh_keys = self._get_meta_data().get('public-keys') if not raw_ssh_keys: