We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_run_transform
execute_graphql_query
1 parent 71c150d commit 96d021bCopy full SHA for 96d021b
infrahub_sdk/ctl/cli_commands.py
@@ -208,7 +208,6 @@ async def _run_transform(
208
debug: Prints debug info to the command line
209
repository_config: Repository config object. This is used to load the graphql query from the repository.
210
"""
211
- branch = get_branch(branch)
212
213
try:
214
response = execute_graphql_query(
infrahub_sdk/ctl/utils.py
@@ -118,6 +118,10 @@ def execute_graphql_query(
118
query_str = query_object.load_query()
119
120
client = initialize_client_sync()
121
+
122
+ if not branch:
123
+ branch = client.config.default_infrahub_branch
124
125
response = client.execute_graphql(
126
query=query_str,
127
branch_name=branch,
0 commit comments