15:02:11 #startmeeting Ansible Core 15:02:11 Meeting started Thu Mar 8 15:02:11 2018 UTC. The chair is gundalow. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:02:11 Useful Commands: #action #agreed #halp #info #idea #link #topic. 15:02:11 The meeting name has been set to 'ansible_core' 15:02:18 #chair abadger1999 bcoca 15:02:18 Current chairs: abadger1999 bcoca gundalow 15:02:24 #topic Open Floor 15:03:09 * akasurde waves 15:03:12 * mrproper waves 15:03:15 * bcoca hides in corner 15:03:15 .hello2 15:03:16 sivel: sivel 'Matt Martz' 15:03:16 #chair mrproper akasurde 15:03:16 Current chairs: abadger1999 akasurde bcoca gundalow mrproper 15:03:39 * Pilou waves 15:04:21 \o 15:04:22 #topic mutually_exclusive with option 15:04:30 #chair sivel sdoran 15:04:30 Current chairs: abadger1999 akasurde bcoca gundalow mrproper sdoran sivel 15:04:45 mrproper: Want to outline your requirement here 15:06:20 I'd like to have a feature within the AnsibleModule class which is a mixture of required_if and mutually_exclusive for parameter evaluation. In my situation, I want to have Ansible evaluate this..."State cannot be absent if org_name or org_id is also specified". 15:07:02 at that point you just want expressions when a in ('x', 'y') and b != 13 15:07:07 aka python code? 15:07:41 Yes. That would accomplish the job. But I'm wondering if it makes sense to have it as a built in feature. 15:08:05 i prefer to keep it simple, its already a bit bloated imo 15:08:33 So your recommendation is to built it into my module or module_util instead of adding a feature? 15:08:35 rember we copy this code for all modules, if most are not going to use it, its just increasing the copy size for no reason 15:08:52 'built as feature' would have it in module_utils anyways 15:10:06 We've added the ability to specify your own function for type validation. Maybe we should add a way to register your own checkers for inter-parameter checking 15:10:59 Then we can ship the generic checkers in a subdirectory like the additional type validators are. 15:12:39 and include them on a per module basis? +10 15:13:11 yep. 15:14:26 abadger1999: are you going to do the basic separation in 2.6? 15:14:52 bcoca: I think it would get considered a feature. 15:15:02 it's definitely not stabilization 15:15:43 I was thinking 2.7 to pick that work up again 15:16:13 despite best efforts I'm positive something will end up breaking for someone 15:16:14 you are not actually changing the code/function, just refactoring it to avoid the bloated packing 15:16:21 but i can see it both ways 15:16:28 splitting the files will require refactoring 15:16:47 mrproper: my implementation was denied: https://github.com/ansible/ansible/pull/28662 15:16:53 sivel: change breeds uncertainty 15:17:13 we will have to change functionality slightly to not have access to `module`, and then import back into basic, and re-implement to use the new methods 15:17:25 mrproper: So for now, if you want to keep the checker i nthe module you can. If you want to look at making it more generic, the way types was implemented is here: https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L2038 15:18:25 My work thus far: https://github.com/ansible/ansible/compare/devel...sivel:categorization-of-basic 15:18:46 abadger1999, That's fair, thank you! 15:18:48 It's not all applicable, though, because types has a single entry whereas the inter-param validators currently each have a parameter to AnsibleModule 15:21:33 mrproper: we are stepping on the same toes lately ;-) 15:32:00 gundalow: looks like we have stalled. Should we close? 15:32:36 dag, Yeah clearly! Without knowing either. 15:33:12 * bcoca now suspects both accounts are the same user, using vpn to mask ip 15:36:46 bcoca: now there's an idea ;-) 15:36:58 I may get sufficient votes in next core meeting :p 15:37:21 * bcoca checks if 13 aliaes is enough 15:38:21 Anything else on this? 15:38:37 #topic Open Floor 15:39:07 #chair 15:39:07 Current chairs: abadger1999 akasurde bcoca gundalow mrproper sdoran sivel 15:39:16 Anyone got anything else? 15:39:27 I'm set for now. Thanks. 15:39:30 (I realise most of us are in another meeting at the same time) 15:39:36 :-) 15:39:41 https://github.com/ansible/ansible/pull/36788 15:39:45 * dag is dedicated to this meeting 15:39:48 mrproper: Ace, thanks for the discussion. Feel free to speak to us in #ansible-devel any anypoint 15:40:05 bcoca: discussion/review? 15:40:22 alloftheabove 15:40:34 bcoca, that typo tho... *grumbles* 15:40:37 i have 3 other meetings also at this time ... yet my calendar is mostly blank for the week ... 15:40:56 #topic actual error reprting on failed galaxy clone #36788 15:41:02 #link https://github.com/ansible/ansible/pull/36788 15:41:57 * dag is out 15:42:20 #info also allow debugging to see stdout/stderr from command. we were not being 'nice' by devnulling all this info. 15:52:57 OK, guess we are done 15:53:00 Thanks y'all 15:53:02 https://github.com/ansible/ansible/issues/37148 < no, this 15:53:02 #endmeeting