Tuesday, 2021-01-05

openstackgerritTosin Farai proposed openstack/ansible-collections-openstack master: Add support for new features  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76677600:01
openstackgerritShnaidman Sagi proposed openstack/ansible-collections-openstack master: Add modules for roles information  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76920200:20
openstackgerritShnaidman Sagi proposed openstack/ansible-collections-openstack master: Add modules for roles information  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76920201:25
openstackgerritShnaidman Sagi proposed openstack/ansible-collections-openstack master: Add modules for roles information  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76920202:30
*** spatel has joined #openstack-ansible-sig02:44
*** evrardjp has quit IRC05:33
*** evrardjp has joined #openstack-ansible-sig05:33
*** spatel has quit IRC06:17
*** tosin has joined #openstack-ansible-sig07:14
*** tremble has quit IRC07:41
*** gtema has joined #openstack-ansible-sig08:17
*** tremble has joined #openstack-ansible-sig08:29
sshnaidmgtema, replied ^10:09
gtemaok, will have a look after the call10:18
gtemaand if we have "name" - we can use get_role - I guess we do it like that sometimes: list or get10:19
*** tosin has quit IRC10:22
*** tosin has joined #openstack-ansible-sig12:28
sshnaidmgtema, if data is same it doesn't make sense to use a different call13:33
sshnaidmprobably I can just filter the output and return role with "name"13:34
gtemaidea is to be able to get ID by name and verify existence13:34
gtemaor name by ID13:35
sshnaidmgtema, the return data prints both name and ID13:37
gtemaI know. I am using often _info really to only verify presence of concrete entry13:38
gtemasomething like image13:38
gtemaor after deleting resource verify it is really gone13:38
sshnaidmgtema, for that purpose it's better to use not-info module, like identity_role module13:40
*** gtema has quit IRC13:40
sshnaidmfor ensuring the role exists/doesn't exist13:40
*** gtema has joined #openstack-ansible-sig13:41
sshnaidmgtema, in bottom line I think I can add filter by ID/name if specified13:46
gtemathere is no need to fetch all roles in this case. But we can add it in SDK, since API supports this13:47
gtemayou can also invoke "search_roles"13:48
sshnaidmgtema, I'd leave same call for simplicity, when sdk supports it we'll need just to add 'name' for kwargs13:48
gtemaand actually list_roles should support passing "name" under kwargs13:49
sshnaidmyeah, I see list_users supports it13:50
sshnaidmI'll try to add it in SDK13:50
gtemaSDK should support it as well out-of-box13:50
gtemait's just not properly documented13:50
sshnaidmit's not in valid_kwargs, trying to add it there13:57
gtemaoh, right14:01
sshnaidmgtema, yeah, seems working, preparing a patch..14:04
gtemacool14:05
sshnaidmgtema, till which branch we can backport it?14:06
gtemahmm14:06
gtemaactually pretty far, as long as policies allow. But I would go till train, since we had a restructure14:07
*** tremble has quit IRC16:16
*** gtema has quit IRC17:28
*** tremble has joined #openstack-ansible-sig18:24
*** tosin has quit IRC22:07

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