Skip to content

Commit f713e1c

Browse files
committed
def _local_update moved
1 parent a23fb41 commit f713e1c

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

f5/bigip/resource.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,6 @@ def _check_command_parameters(self, **kwargs):
225225
error_message = 'Missing required params: %s' % check
226226
raise MissingRequiredCommandParameter(error_message)
227227

228-
def _local_update(self, rdict):
229-
"""Call this with a response dictionary to update instance attrs.
230-
231-
If the response has only valid keys, stash meta_data, replace __dict__,
232-
and reassign meta_data.
233-
234-
:param rdict: response attributes derived from server JSON
235-
"""
236-
sanitized = self._check_keys(rdict)
237-
temp_meta = self._meta_data
238-
self.__dict__ = sanitized
239-
self._meta_data = temp_meta
240-
241228
def _check_keys(self, rdict):
242229
"""Call this from _local_update to validate response keys
243230
@@ -458,6 +445,19 @@ def _prepare_put_or_patch(self, kwargs):
458445
read_only = self._meta_data.get('read_only_attributes', [])
459446
return requests_params, update_uri, session, read_only
460447

448+
def _local_update(self, rdict):
449+
"""Call this with a response dictionary to update instance attrs.
450+
451+
If the response has only valid keys, stash meta_data, replace __dict__,
452+
and reassign meta_data.
453+
454+
:param rdict: response attributes derived from server JSON
455+
"""
456+
sanitized = self._check_keys(rdict)
457+
temp_meta = self._meta_data
458+
self.__dict__ = sanitized
459+
self._meta_data = temp_meta
460+
461461
def _update(self, **kwargs):
462462
"""wrapped with update, override that in a subclass to customize"""
463463

0 commit comments

Comments
 (0)