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

Problem with subdirectories #2

Open
richardklose opened this issue Apr 19, 2022 · 0 comments · May be fixed by #3
Open

Problem with subdirectories #2

richardklose opened this issue Apr 19, 2022 · 0 comments · May be fixed by #3

Comments

@richardklose
Copy link

I have my ssh config files organized like this:

.ssh
|-- config
|-- config.d
    |-- customerA
    |   |--platformA1
    |   |--platformA2
    |
    |--customerB
        |--platformB1
        |--platformB2

The platform*-files hold the actual host entries.

It seems that itermoxyl can't deal with a structure of subdirectories in subdirectories:

Traceback (most recent call last):
  File "/Users/richard/.local/bin/itermoxyl", line 267, in <module>
    main()
  File "/Users/richard/.local/bin/itermoxyl", line 247, in main
    available_hosts = load_hosts()
  File "/Users/richard/.local/bin/itermoxyl", line 71, in load_hosts
    load_hosts(f, available_hosts)
  File "/Users/richard/.local/bin/itermoxyl", line 52, in load_hosts
    with open(normpath(join(CONFIG_PATH, expanduser(config_file_name)))) as f:
IOError: [Errno 21] Is a directory: '/Users/richard/.ssh/config.d/customerA'
@richardklose richardklose linked a pull request Apr 19, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant