mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't update from attributes starting with __
This commit is contained in:
parent
0f1779eceb
commit
56f68a1639
1 changed files with 2 additions and 0 deletions
2
setup.py
2
setup.py
|
@ -564,6 +564,8 @@ class SaltDistribution(distutils.dist.Distribution):
|
|||
|
||||
def update_metadata(self):
|
||||
for attrname in dir(self):
|
||||
if attrname.startswith('__'):
|
||||
continue
|
||||
attrvalue = getattr(self, attrname, None)
|
||||
if attrvalue == 0:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue