diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-11-17 00:58:04 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-11-17 15:00:20 +0100 |
commit | 2d2a3905ca48622e0e974176e0a5bbd739c7c8fa (patch) | |
tree | 244f690e184acc034066dbdca686b3947249ad67 /src/lib/Bcfg2/Client/Tools/POSIX/base.py | |
parent | 0462f31b4243d8cde088f121e519c5db4d6c982f (diff) | |
download | bcfg2-2d2a3905ca48622e0e974176e0a5bbd739c7c8fa.tar.gz bcfg2-2d2a3905ca48622e0e974176e0a5bbd739c7c8fa.tar.bz2 bcfg2-2d2a3905ca48622e0e974176e0a5bbd739c7c8fa.zip |
Client/Tools: Fix error if no pkg handled
Install() of a client tool returns the changed states as dict, that will update
the global state. If nothing is handled withing a tool, it have to return an empty
dict and not None because the return value is directly used as argument for update:
> APT.Install() call failed:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/Bcfg2/Client/__init__.py", line 739, in DispatchInstallCalls
> self.states.update(tool.Install(handled))
> TypeError: 'NoneType' object is not iterable
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/POSIX/base.py')
0 files changed, 0 insertions, 0 deletions