# Execution environment used with inventory source syncing

**URL:** <https://forum.ansible.com/t/execution-environment-used-with-inventory-source-syncing/38212>\
**Category:** AWX Project\
**Tags:** kubernetes, awx, ee\
**Created:** [July 11, 2023, 12:26pm UTC](https://forum.ansible.com/t/execution-environment-used-with-inventory-source-syncing/38212 "2023-07-11T12:26:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamroddo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/iamroddo/32/321_2.png) [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Post date:** [July 11, 2023, 12:26pm UTC](https://forum.ansible.com/t/execution-environment-used-with-inventory-source-syncing/38212/1 "2023-07-11T12:26:50Z")

</div>

I’m running AWX 22.4.0 in K8s. How does AWX should determine which EE to use for an inventory source sync when none is specified?

Under “api/v2/inventory\_sources/” I see “execution\_environment”, which is “null” when no EE has been set to that inventory source, and “resolved\_environment” which is one of defined EEs. When an EE has been set to that inventory source then the details of this are seen on both “execution\_environment” and “resolved\_environment”.

Is there a logic for deriving the “resolved\_environment”?

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [July 12, 2023, 6:48pm UTC](https://forum.ansible.com/t/execution-environment-used-with-inventory-source-syncing/38212/2 "2023-07-12T18:48:56Z")

</div>

Hello,  
You can find this specifc logic in the codebase here: [https://github.com/ansible/awx/blob/devel/awx/main/models/mixins.py#L505](https://github.com/ansible/awx/blob/devel/awx/main/models/mixins.py#L505)  
Do note that some models override this logic depending on the scenario.

- AWX Team
