Closed sdairs closed 2 years ago
Ok, so I was mistaking on 1. wrt actually getting to all the children, sorry. I still think changing the call might be right ( looking for @Chaffelson input though ) Sorry.
Thanks for the contribution as well!
Originally I went with single depth as I hadn't thought through all of the consequences of recurring over all children yet - After discussion with @Chaffelson I changed this to recur down to all children, so it's doing that after the second commit.
wrt to point 2 - yep, welcome feedback on that - I had considered returning a list of all the child PGs affected, but that meant either 1. changing the return type so it always returns a list or 2. having more than one possible return type - neither sounded ideal. Open to suggestions
Adds an optional bool to assign_context_to_process_group that, when True, will cascade the assigned Parameter Context down to the direct children Process Groups of the named Process Group. Does not recur down to nested-children.