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:
Matt Davis 2017-11-21 17:12:32 -08:00 committed by ansibot
parent 6f4731ef11
commit 048c51c1f8

View file

@ -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):
'''