Skip to content

Commit

Permalink
Add password field for CR image creation (#1204) (#1207)
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)

Co-authored-by: Shubham Ganar <[email protected]>
  • Loading branch information
Satellite-QE and shubhamsg199 authored Jul 29, 2024
1 parent 40def8d commit 15c8917
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 @@ -5102,6 +5102,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 @@ -5137,6 +5138,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 15c8917

Please sign in to comment.