Thursday, 2026-01-29

jrossernoonedeadpunk: yes i can make a patch for the filter08:02
jrosserand ideas on the name? (hardest problem in computing of course)08:02
jrosser*any08:02
noonedeadpunk[e]It is indeed...08:03
jrosseri cant totally think of something that describes the optional-ness of the condition08:03
jrosserits sort of `reject_when(input, 'condition', 'false)`08:04
jrosseri.e reject when condition is defined and condition is false08:04
noonedeadpunk[e]rejectattr_if_defined?08:04
noonedeadpunk[e]Too long kinda08:04
noonedeadpunk[e]Eventually it will be openstack.osa.<name>08:05
noonedeadpunk[e]So we can have it as just openstack.osa.rejectattr08:05
jrosseryeah and its not at all a drop in replacement for rejectattr08:05
noonedeadpunk[e]Isn't it?08:06
noonedeadpunk[e]What if we filter input and pass it to the rejectattr?08:07
noonedeadpunk[e]But dunno08:07
jrosserrejectattr lets you define the test yourself08:07
jrosserbut here we say "bool evaulate this key"08:07
noonedeadpunk[e]True08:08
jrosserwell maybe `reject_key`08:09
jrosserbut still somehow awkward08:10
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Add reject_when filter  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/97512309:12
jrossernoonedeadpunk: did we write a howto guide for running molecule locally?10:14
jrosseroh i remember its via tox isnt it10:17
noonedeadpunkyeah, it's tox -e molecule10:22
noonedeadpunkwe actually need to update our contributor docs wrt this10:22
jrosseryeah its kind of unclear how to start from zero in a new vm10:22
jrosser(just trying to make some test for this new filterO)10:23
noonedeadpunkI'd guess `git clone; apt install python3-tox; tox -e molecule`?10:35
jrosserthats it10:35
jrosserthough i've just been tripped up by the first attempt at running it being extremely slow (it has to get all the depenencies once, and doesnt tell you what its doing without -v)10:35
jrosseroh and of course docker install10:36
noonedeadpunkI wonder if we can improve that dependency management somehow...10:38
noonedeadpunkwithout returning wrapper script to run tox like we had10:38
jrosseris this what bindep is for?10:39
noonedeadpunkactually, yes10:39
noonedeadpunkthen we just need to run bindep in tox10:39
noonedeadpunkor well10:39
noonedeadpunkso it's run by zuul10:39
noonedeadpunkbut not when you execute manually...10:40
jrosserright10:40
noonedeadpunkand then docker is a separate thing in zuul...10:41
noonedeadpunkI wonder why we stopped using `deprecated` filter... That sounds like an amazing idea?10:47
noonedeadpunkso....11:12
noonedeadpunkI have come up with some alternative....11:14
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-plugins master: Implement custom rejectatr filter  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/97514111:18
noonedeadpunkjrosser: this should be a drop-in replacement for rejectattr, which brings old functionality ^11:19
noonedeadpunkI actually don't know what would be preference...11:21
noonedeadpunkbut this way it's possible to just s/rejectattr/openstack.osa.rejectattr/11:21
jrosseroh cool11:43
jrosserwell maybe thats more obvious as its more familiar11:44
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-plugins master: Use Display for deprecated filter  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/97514612:38
noonedeadpunkwe really should consider using `| deprecated` going forward - how this cool thing was lost...12:40
noonedeadpunkit would be also sooo easy to search for12:40
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-plugins master: Implement custom rejectatr filter  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/97514113:26
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-plugins master: Use Display for deprecated filter  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/97514615:59
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-pki master: Use internal rejectattr implementation  https://review.opendev.org/c/openstack/ansible-role-pki/+/97177216:43
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-systemd_service master: Ensure systemd_overrides_only exists before rejectattr  https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/97177116:46
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-plugins master: Pre-Evaluate nova_console_proxy_types  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/97518517:40
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Update Ansible Core to 2.19  https://review.opendev.org/c/openstack/openstack-ansible/+/97175617:49
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Update Ansible Core to 2.19  https://review.opendev.org/c/openstack/openstack-ansible/+/97175617:58
noonedeadpunkit's so annoying...17:58
noonedeadpunkI really wonder how we can cover everyting... except just grepping for `when:` and then verifying all occurances...17:59
noonedeadpunkas even what is bool is not guaranteed to be bool, because if it's passed with --extra-vars in console - it can be broken17:59
noonedeadpunkas -e always passed as a string...18:00
noonedeadpunkit makes things cleaner as a resulkt I guess.... but how to reach that state...18:01
opendevreviewDmitriy Chubinidze proposed openstack/openstack-ansible master: Force skyline-console yarn build   https://review.opendev.org/c/openstack/openstack-ansible/+/97521720:08
opendevreviewDmitriy Chubinidze proposed openstack/openstack-ansible master: Force skyline-console yarn build   https://review.opendev.org/c/openstack/openstack-ansible/+/97521720:11

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!