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

Watch not working for runbooks when using non-tty interactive #112

Closed
pipoe2h opened this issue Aug 21, 2020 · 0 comments
Closed

Watch not working for runbooks when using non-tty interactive #112

pipoe2h opened this issue Aug 21, 2020 · 0 comments
Assignees

Comments

@pipoe2h
Copy link

pipoe2h commented Aug 21, 2020

This is similar to issue #59 but for runbooks

command: sudo calm run runbook -wi jg-tf-aws_vpc

error:

Traceback (most recent call last):
  File "/usr/local/bin/calm", line 8, in <module>
    sys.exit(main())
  File "/root/.local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/root/.local/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/utils.py", line 135, in invoke
    return super().invoke(ctx)
  File "/root/.local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/utils.py", line 124, in invoke
    return super().invoke(ctx)
  File "/root/.local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/root/.local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/root/.local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runbook_commands.py", line 218, in _run_runbook_command
    input_file=input_file,
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runbooks.py", line 596, in run_runbook_command
    Display.wrapper(render_runbook, watch)
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/utils.py", line 69, in wrapper
    func(display)
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runbooks.py", line 588, in render_runbook
    screen, client, runbook_id, watch, input_data=input_data, payload=payload
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runbooks.py", line 625, in run_runbook
    watch_runbook(runlog_uuid, runbook, screen=screen, input_data=input_data)
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runbooks.py", line 693, in watch_runbook
    runlog_uuid=runlog_uuid,
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runbooks.py", line 901, in poll_action
    (completed, msg) = completion_func(response, **kwargs)
  File "/root/.local/lib/python3.7/site-packages/calm/dsl/cli/runlog.py", line 364, in is_action_complete
    interrupt = screen.get_event()
AttributeError: 'Display' object has no attribute 'get_event'
@kdabi kdabi self-assigned this Aug 24, 2020
abhijeetkaurav1st pushed a commit that referenced this issue Mar 21, 2022
* Update runbook test to add default project reference

* Formatting

* Skip runbook tests

(cherry picked from commit 1443df8b4aaa1308a80a3d7e8ac036f4256dcea9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants