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

Fix execution of terraform commands #59

Closed
MiguelNdeCarvalho opened this issue May 16, 2022 · 0 comments · Fixed by #57
Closed

Fix execution of terraform commands #59

MiguelNdeCarvalho opened this issue May 16, 2022 · 0 comments · Fixed by #57
Assignees
Labels
bug Something isn't working

Comments

@MiguelNdeCarvalho
Copy link
Contributor

    ~/Documents/Customers/SMT/is-terraform-shermans    master  python /home/mike/Documents/Customers/AnguloSolido/terrabutler/run.py tf -site inception state list
Traceback (most recent call last):
  File "/home/mike/Documents/Customers/AnguloSolido/terrabutler/run.py", line 5, in <module>
    exit(main())
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mike/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/mike/.local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/mike/Documents/Customers/AnguloSolido/terrabutler/terrabutler/click.py", line 688, in tf_state_list_cli
    terraform_command_runner("state list", args, "none", ctx.obj['SITE'])
  File "/home/mike/Documents/Customers/AnguloSolido/terrabutler/terrabutler/tf.py", line 92, in terraform_command_runner
    p = subprocess.Popen(args=command, cwd=site_dir)
  File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1775, in _execute_child
    self.pid = _posixsubprocess.fork_exec(
TypeError: expected str, bytes or os.PathLike object, not tuple
@MiguelNdeCarvalho MiguelNdeCarvalho added the bug Something isn't working label May 16, 2022
@MiguelNdeCarvalho MiguelNdeCarvalho self-assigned this May 16, 2022
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

Successfully merging a pull request may close this issue.

1 participant