Merge "Allow setting Agents description to None" into stable/kilo
This commit is contained in:
commit
d9398261ce
|
@ -52,7 +52,8 @@ RESOURCE_ATTRIBUTE_MAP = {
|
|||
'is_visible': True},
|
||||
'description': {'allow_post': False, 'allow_put': True,
|
||||
'is_visible': True,
|
||||
'validate': {'type:string': attr.DESCRIPTION_MAX_LEN}},
|
||||
'validate': {
|
||||
'type:string_or_none': attr.DESCRIPTION_MAX_LEN}},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ class AgentManagementTestJSON(base.BaseAdminNetworkTest):
|
|||
"""
|
||||
Restore the agent description after update test.
|
||||
"""
|
||||
description = self.agent['description'] or ''
|
||||
description = self.dyn_agent['description']
|
||||
origin_agent = {'description': description}
|
||||
self.admin_client.update_agent(agent_id=self.agent['id'],
|
||||
self.admin_client.update_agent(agent_id=self.dyn_agent['id'],
|
||||
agent_info=origin_agent)
|
||||
|
|
Loading…
Reference in New Issue