CanastaWiki / Canasta-CLI

The Canasta command line interface, written in Go
MIT License
5 stars 14 forks source link

`canasta add` claims the orchestrator is not available #112

Closed lambada closed 2 months ago

lambada commented 6 months ago

Recreation steps:

  1. Have a successful canasta create run: canasta create -a megan -i canasta1 -r compose-override.yaml --rootdbpass --wikidbuser wiki --wikidbpass -w defaultwiki
  2. Run a canasta add command pointing to the same canasta instance $ canasta add -a megan -i canasta1 -s "Second Wiki" -u "wiki2.example.com" -w wiki2 --wikidbuser wiki

This results in the following complaint Orchestrator: compose is not available

This is the conf.json that is generated after the canasta create command

{
        "Orchestrators": {},
        "Installations": {
                "canasta1": {
                        "Id": "canasta1",
                        "Path": "/path/to/canasta/canasta1",
                        "Orchestrator": "compose"
                }
        }
}

docker compose is still working, and as the conf file shows the orchestrator was there for the create command.

lambada commented 6 months ago

Looking at the code I think that error is probably coming from https://github.com/CanastaWiki/Canasta-CLI/blob/2fbcb74ab63d09eed057ae113f86b7ea3d047e68/internal/orchestrators/orchestrators.go#L199-L200 A lot of places emit very similar errors about orchestrators not being available... but this one appears to be the only one to have a capitalized Orchestrator.