=== cznk_ is now known as cznk [15:59] aciba: cloud-init SRU uploads have now be dput to both ubuntu -proposed review pockets and ppa:cloud-init-dev/proposed [16:00] for Ubuntu focal, jammy, lunar and mantic [16:52] minimal: 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. [17:07] yes, I'm have been working on that over the holiday period (as well as cc_growpart stuff) [17:09] I have some local ds-identify changes that I need to test, just got sidetracked with the growpart stuff lol [18:27] thanks blackboxsw for the uploads! [18:27] np aciba heading through your deb822 pr now thx [21:51] minimal: nice, happy to help review that when ready [21:53] holmanb: first you gotta review my PR that touches ds-identify [21:53] the one that's already submitted [21:53] meena: I'm looking at that one now :) [21:53] nice [21:54] everyone wants to change ds-identify lately lol [21:56] would be cool if you could do `with contextlib.suppress(FileNotFoundError) and open(lease_file, "r") as fd:` just like that in one line [21:58] meena: there's a way to chain context managers [21:58] meena: not as a slick language feature like that, but using a builtin module [21:59] https://docs.python.org/3/library/contextlib.html#contextlib.ExitStack [22:01] we 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 though [22:01] that is mentioned here too https://stackoverflow.com/questions/3024925/create-a-with-block-on-several-context-managers [22:03] looks like a builtin feature to me: , [22:03] would the first syntax in that accepted answer work? `with contextlib.suppress(...), open(...) as fd:` ? [22:04] I wonder [22:05] would recover one indentation level here, https://github.com/canonical/cloud-init/pull/4728/files [22:05] -ubottu:#cloud-init- Pull 4728 in canonical/cloud-init "Minor dhcp fixes" [Open] [22:07] nice suggestion, that works [22:08] just pushed the update [22:09] 🚀 [22:10] I need to fix a few tests I've written then that could benefit from this [23:34] meena: review submitted [23:58] holmanb: is the WSL datasource invisible? ;-) [23:58] minimal: the python part of it? [23:59] minimal: I guess they're contributing that seperately [23:59] but we've already talked about their approach internally so I know that the datasource implementation in python is comming next