Skip to content

Commit

Permalink
Add password field for CR image creation (#1204)
Browse files Browse the repository at this point in the history
* Add password field for CR image creation

Signed-off-by: Shubham Ganar <[email protected]>

* Add password field for Compute Resource Image create

Signed-off-by: Shubham Ganar <[email protected]>

---------

Signed-off-by: Shubham Ganar <[email protected]>
  • Loading branch information
shubhamsg199 authored Jul 29, 2024
1 parent f18649a commit 0676139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -5143,6 +5143,7 @@ def __init__(self, server_config=None, **kwargs):
'user_data': entity_fields.BooleanField(),
'username': entity_fields.StringField(required=True),
'uuid': entity_fields.StringField(required=True),
'password': entity_fields.StringField(),
}
super().__init__(server_config=server_config, **kwargs)
self._meta = {
Expand Down Expand Up @@ -5178,6 +5179,7 @@ def read(self, entity=None, attrs=None, ignore=None, params=None):
entity = entity or self.entity_with_parent()
if ignore is None:
ignore = set()
ignore.add('password')
ignore.add('compute_resource')
ignore.add('user_data')
return super().read(entity, attrs, ignore, params)
Expand Down

0 comments on commit 0676139

Please sign in to comment.