mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #25139 from saltstack/revert-25136-features/raas-17-salt-cloud-2015.8
Revert "Make the detection code work under Python 3.4"
This commit is contained in:
commit
a50f74ba88
@ -501,7 +501,7 @@ class BaseConfigItemMeta(six.with_metaclass(Prepareable, type)):
|
||||
for base in reversed(inspect.getmro(cls)):
|
||||
validate_attributes = getattr(base, '__validate_attributes__', None)
|
||||
if validate_attributes:
|
||||
if instance.__validate_attributes__.__func__.__code__ is not validate_attributes.__code__:
|
||||
if instance.__validate_attributes__.__func__ is not base.__validate_attributes__.__func__:
|
||||
# The method was overridden, run base.__validate_attributes__ function
|
||||
base.__validate_attributes__(instance)
|
||||
# Finally, run the instance __validate_attributes__ function
|
||||
|
Loading…
Reference in New Issue
Block a user