yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92216
[Bug 1884979] Re: util.mount_cb only supports passing through a single (positional) argument to the wrapped function
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3751
** Bug watch added: github.com/canonical/cloud-init/issues #3751
https://github.com/canonical/cloud-init/issues/3751
** Changed in: cloud-init
Status: Triaged => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1884979
Title:
util.mount_cb only supports passing through a single (positional)
argument to the wrapped function
Status in cloud-init:
Expired
Bug description:
This makes it difficult to use with a function that needs to take more
than a single positional parameter, or any keyword arguments; you have
to partially apply the function before calling mount_cb.
I propose adding `args` and `kwargs` parameters, which will be passed
to the callback function using *args and **kwargs. (For bonus points,
refactor all current callsites to pass `args` so we can drop the
`data` argument entirely.)
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1884979/+subscriptions
References