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

Vagrant connector: Invalid connector data ssh_port:: str is not an instance of int #1089

Closed
stygian-coffee opened this issue Apr 30, 2024 · 0 comments · Fixed by #1090
Closed
Labels
Bug Label for all kind of bugs.

Comments

@stygian-coffee
Copy link

Describe the bug

The vagrant connector fails with the error

Connector data type error: Invalid connector data `ssh_port`:: str is not an instance of int

To Reproduce

Use this Vagrantfile:

Vagrant.configure('2') do |config|
  config.vm.box = 'generic/ubuntu2204'
end

Run vagrant up. Run pyinfra @vagrant exec -- echo 1. Observe the error.

Expected behavior

I expect this output:

--> Loading config...
--> Loading inventory...
    Getting Vagrant config...

--> Connecting to hosts...
    [@vagrant/default] Connected

--> Preparing operations...
    [@vagrant/default] Ready: shell

--> Beginning operation run...
--> Starting operation: server.shell (echo 1)
[@vagrant/default] 1
    [@vagrant/default] Success

--> Results:
    Operation               Hosts   Success   Error   No Change
    server.shell (echo 1)   1       1         -       -

--> Disconnecting from hosts...

Meta

  • Include output of pyinfra --support.
    If you are having issues with pyinfra or wish to make feature requests, please
    check out the GitHub issues at https://github.com/Fizzadar/pyinfra/issues .
    When adding an issue, be sure to include the following:

    System: Linux
      Platform: Linux-6.8.7-arch1-2-x86_64-with-glibc2.39
      Release: 6.8.7-arch1-2
      Machine: x86_64
    pyinfra: v3.0b0
    Executable: pyinfra
    Python: 3.12.3 (CPython, GCC 13.2.1 20240417)
  • How was pyinfra installed (source/pip)?
    I'm running pyinfra right from a checkout of HEAD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Label for all kind of bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant