Ensure that readonly result members are serialized (#33169)
* fix for breaking metadata change in various Azure Python SDK bits; some members were marked `readonly` for validation, which the default msrest serializer ignores. Added `keep_readonly` flag to serializer call to ensure they're preserved.
This commit is contained in:
parent
6f4731ef11
commit
048c51c1f8
1 changed files with 1 additions and 1 deletions
|
@ -528,7 +528,7 @@ class AzureRMModuleBase(object):
|
|||
self.log("dependencies: ")
|
||||
self.log(str(dependencies))
|
||||
serializer = Serializer(classes=dependencies)
|
||||
return serializer.body(obj, class_name)
|
||||
return serializer.body(obj, class_name, keep_readonly=True)
|
||||
|
||||
def get_poller_result(self, poller, wait=5):
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue