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]>
(cherry picked from commit 0676139)
  • Loading branch information
shubhamsg199 authored and web-flow committed Jul 29, 2024
1 parent 7d9a779 commit 506ae9b
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 @@ -4915,6 +4915,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 @@ -4950,6 +4951,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 506ae9b

Please sign in to comment.