diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2023-03-31 11:17:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 10:17:10 -0500 |
commit | 2a61a589fc0145314a61a31df4fd71c4639c0154 (patch) | |
tree | f479d6be3d25086668e60e6b640cf4c5144a0b68 /tests/unittests/sources/test_cloudsigma.py | |
parent | b33d528e132de53933d3e4d6900e0a298ea6dec0 (diff) | |
download | cloud-init-git-2a61a589fc0145314a61a31df4fd71c4639c0154.tar.gz |
config/cc_resizefs: fix do_resize arguments (#2106)
Daily PPA builds were crashing due to
refactor: stop passing log instances to cc_* handlers (#2016).
When dropping the logger argument, the tuple became a list which
then gets expanded in the call to do_resize() and crashes.
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/config/modules.py", line 257, in _run_modules
run_name, mod.handle, func_args, freq=freq
File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 67, in run
return self._runners.run(name, functor, args, freq, clear_on_fail)
File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 172, in run
results = functor(**args)
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_resizefs.py", line 309, in handle
args=(resize_cmd),
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2722, in log_time
ret = func(*args, **kwargs)
TypeError: do_resize() takes 1 positional argument but 2 were given
```
Restore args as a tuple.
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'tests/unittests/sources/test_cloudsigma.py')
0 files changed, 0 insertions, 0 deletions