Skip to content

Commit

Permalink
Use api_base_path from awxkit envioronment AWXKIT_API_BASE_PATH
Browse files Browse the repository at this point in the history
Change  base path call to api_base_path from config in export operation
  • Loading branch information
raqs31 authored Feb 20, 2025
1 parent bf4d454 commit 9913d2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awx_collection/plugins/module_utils/awxkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from awxkit.api.client import Connection
from awxkit.api.pages.api import ApiV2
from awxkit.api import get_registered_page
from awxkit.config import config

HAS_AWX_KIT = True
except ImportError:
Expand Down Expand Up @@ -42,7 +43,7 @@ def get_api_v2_object(self):
if not self.apiV2Ref:
if not self.authenticated:
self.authenticate()
v2_index = get_registered_page('/api/v2/')(self.connection).get()
v2_index = get_registered_page(config.api_base_path + 'v2/')(self.connection).get()
self.api_ref = ApiV2(connection=self.connection, **{'json': v2_index})
return self.api_ref

Expand Down

0 comments on commit 9913d2f

Please sign in to comment.