/srv/irclogs.ubuntu.com/2024/01/03/#cloud-init.txt

=== cznk_ is now known as cznk
blackboxswaciba: cloud-init SRU uploads have now be dput to both ubuntu -proposed review pockets and ppa:cloud-init-dev/proposed 15:59
blackboxswfor Ubuntu focal, jammy, lunar and mantic16:00
holmanbminimal: I know you were considering adding ds-identify before the new year. Is that something you plan on working on in the near future? If not I'd like to create a github issue to capture that and save the comments you made earlier about required changes to ds-identify.16:52
minimalyes, I'm have been working on that over the holiday period (as well as cc_growpart stuff)17:07
minimalI have some local ds-identify changes that I need to test, just got sidetracked with the growpart stuff lol17:09
acibathanks blackboxsw for the uploads!18:27
blackboxswnp aciba heading through your deb822 pr now thx18:27
holmanbminimal: nice, happy to help review that when ready21:51
meenaholmanb: first you gotta review my PR that touches ds-identify21:53
meenathe one that's already submitted 21:53
holmanbmeena: I'm looking at that one now :)21:53
meenanice21:53
holmanbeveryone wants to change ds-identify lately lol21:54
meenawould be cool if you could do `with contextlib.suppress(FileNotFoundError) and open(lease_file, "r") as fd:` just like that in one line21:56
holmanbmeena: there's a way to chain context managers21:58
holmanbmeena: not as a slick language feature like that, but using a builtin module21:58
holmanbhttps://docs.python.org/3/library/contextlib.html#contextlib.ExitStack21:59
falcojrwe used it a lot in tests as a way to mock a bunch of things without having a ton of nested context manager mocks or a million mock decorators on each function. The mocker fixture takes care of that now though22:01
meenathat is mentioned here too https://stackoverflow.com/questions/3024925/create-a-with-block-on-several-context-managers22:01
meenalooks like a builtin feature to me: , 22:03
falcojrwould the first syntax in that accepted answer work? `with contextlib.suppress(...), open(...) as fd:` ?22:03
meenaI wonder22:04
meenawould recover one indentation level here, https://github.com/canonical/cloud-init/pull/4728/files22:05
-ubottu:#cloud-init- Pull 4728 in canonical/cloud-init "Minor dhcp fixes" [Open]22:05
holmanbnice suggestion, that works22:07
holmanbjust pushed the update22:08
meena🚀 22:09
meenaI need to fix a few tests I've written then that could benefit from this22:10
holmanbmeena: review submitted23:34
minimalholmanb: is the WSL datasource invisible? ;-)23:58
holmanbminimal: the python part of it?23:58
holmanbminimal: I guess they're contributing that seperately23:59
holmanbbut we've already talked about their approach internally so I know that the datasource implementation in python is comming next23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!