Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aaz_dev/command/api/_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def generate_command_models_from_swagger(swagger_tag, workspace_path=None):
"id": resource_id
})

mod_names = Config.DEFAULT_SWAGGER_MODULE.split('/')
mod_names = Config.DEFAULT_SWAGGER_MODULE
ws = WorkspaceManager.new(
name=Config.DEFAULT_SWAGGER_MODULE,
plane=Config.DEFAULT_PLANE,
Expand Down
10 changes: 6 additions & 4 deletions src/aaz_dev/command/controller/workspace_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,12 @@ def generate_to_aaz(self):
# Merge the commands of subresources which exported in aaz but not exist in current workspace
self._merge_sub_resources_in_aaz()

# update client config
editor = self.load_client_cfg_editor()
if editor:
self.aaz_specs.update_client_cfg(editor.cfg)
# in memory worspace folder does not support client cfg
if not self.is_in_memory:
# update client config
editor = self.load_client_cfg_editor()
if editor:
self.aaz_specs.update_client_cfg(editor.cfg)

# update configurations
for ws_leaf in self.iter_command_tree_leaves():
Expand Down
2 changes: 1 addition & 1 deletion src/aaz_dev/swagger/model/specs/_resource_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _parse_readme_input_file_tags(self):
readme = f.read()

re_yaml = re.compile(
r'```\s*yaml\s*(.*\$\(\s*tag\s*\)\s*==\s*[\'"]\s*(.*)\s*[\'"].*)?\n((((?!```).)*\n)*)\s*```\s*\n',
r'```\s*yaml\s*(.*\$\(\s*tag\s*\)\s*==\s*[\'"]\s*(.*)\s*[\'"].*)?\n((((?!```).)*\n)*)\s*```\s*',
flags=re.MULTILINE)
for piece in re_yaml.finditer(readme):
flags = piece[1]
Expand Down