Bugfix: always trigger __getattr__ to reset and increment the configuration before the call.

This commit is contained in:
Bo Maryniuk 2016-04-27 15:05:57 +02:00
parent 7e1712dd80
commit f189f90124

View file

@ -121,6 +121,8 @@ class _Zypper(object):
self.__no_raise = True
elif item == 'refreshable':
self.__refresh = True
elif item == 'call':
return self.__call
else:
return self.__dict__[item]
@ -210,7 +212,7 @@ class _Zypper(object):
self.error_msg = _error_msg
return True
def call(self, *args, **kwargs):
def __call(self, *args, **kwargs):
'''
Call Zypper.