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

empty hosts.json throws ugly error #602

Open
dotysan opened this issue Dec 15, 2024 · 0 comments
Open

empty hosts.json throws ugly error #602

dotysan opened this issue Dec 15, 2024 · 0 comments

Comments

@dotysan
Copy link

dotysan commented Dec 15, 2024

I was just horsing around. I zeroed out $HOME\.poshss\hosts.json and got this ugly error.

Line |
  17 |  $Session = New-SSHSession -ComputerName $target -AcceptKey -Verbose
     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Expecting element 'root' from namespace ''.. Encountered 'None'  with name '', namespace ''.

An empty dict {} in the hosts.json doesn't error.

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

1 participant