don't update nios_a_record object when running in check mode (#67145)

pull/66877/head
Derek Winters 5 years ago committed by GitHub
parent a4ec18d8a3
commit bc2419c47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -358,7 +358,8 @@ class WapiModule(WapiBase):
# popping 'view' key as update of 'view' is not supported with respect to a:record/aaaa:record/srv:record/ptr:record
proposed_object = self.on_update(proposed_object, ib_spec)
del proposed_object['view']
res = self.update_object(ref, proposed_object)
if not self.module.check_mode:
res = self.update_object(ref, proposed_object)
result['changed'] = True
elif 'network_view' in proposed_object:
proposed_object.pop('network_view')

Loading…
Cancel
Save