Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viz.py error with SimpleFolder #30

Open
SGRelic opened this issue May 15, 2023 · 0 comments
Open

viz.py error with SimpleFolder #30

SGRelic opened this issue May 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SGRelic
Copy link

SGRelic commented May 15, 2023

Hello,

viz.py return an error when you try to invoke get_graph(workflow) if workflow contain a aapi.basefolder.SimpleFolder.

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [17], in <cell line: 69>()
     66     if workflow.deploy().is_ok():
     67         print('The workflow was deployed to Control-M!')
---> 69 get_graph(workflow)

File ~/.local/lib/python3.10/site-packages/ctm_python_client/ext/viz.py:44, in get_graph(workflow)
     41 for o in v.job_list:
     42     cluster.node(f'{v.object_name}/{o.object_name}', o.object_name)
---> 44 for i,o in enumerate(v.sub_folder_list):
     45     cluster.subgraph(get_subgraph(o,f'cluster_{v.object_name}/{o.object_name}_{i}',v.object_name+'/'+o.object_name))
     48 dgraph.subgraph(cluster)

AttributeError: 'SimpleFolder' object has no attribute 'sub_folder_list'
@rbeker-BMC rbeker-BMC added the bug Something isn't working label Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants