api: Remove errant field
A follow-up for Ia178c1314f99c719827e3eb78735d1019852a273 and I0e42de5074dcf699886b20dfd43306683e381ee2. 'adminPass' is only (optionally) returned in server create and rebuild responses, not in server show or update responses. Change-Id: I2c4ce7a2b1063d71561d6af95a58a36b39356879 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -941,7 +941,6 @@ _server_response = {
|
||||
},
|
||||
'additionalProperties': False,
|
||||
},
|
||||
'adminPass': {'type': ['null', 'string']},
|
||||
'config_drive': {
|
||||
'type': ['string', 'null'], 'enum': ['', 'True', 'False', None],
|
||||
},
|
||||
@@ -1480,7 +1479,6 @@ update_response = {
|
||||
},
|
||||
'additionalProperties': False,
|
||||
},
|
||||
'adminPass': {'type': ['null', 'string']},
|
||||
'created': {'type': 'string', 'format': 'date-time'},
|
||||
'fault': {
|
||||
'type': 'object',
|
||||
@@ -1884,6 +1882,8 @@ rebuild_response = {
|
||||
'OS-DCF:diskConfig': {'type': 'string'},
|
||||
},
|
||||
'required': [
|
||||
# adminPass is an unfortunate example of config-driven
|
||||
# API behavior and isn't present unless enabled
|
||||
'accessIPv4',
|
||||
'accessIPv6',
|
||||
'addresses',
|
||||
|
||||
Reference in New Issue
Block a user