When providing the -help command to workspace creation / mutation commands, e.g. create-workspace or update-workspace a interface conversion: interface {} is float64, not string error occurs. I am using zsh, but have tried with multiple versions of the cli & with bash and the same error occurs
% scalr -version
scalr-cli version dev
Build date: unknown
% scalr -help create-workspace
...
Flags:
-agent-pool-id=STRING The ID of the agent pool used to execute run stages. Overrides the default account-level and environment-level pools.
-auto-apply=BOOLEAN Indicates whether `terraform apply` should automatically run when terraform plan ends without error. Default `false`.
-auto-destroy-days=INTEGER How many days should the workspace exist.
interface conversion: interface {} is float64, not string
% scalr -help update-workspace
...
Flags:
-agent-pool-id=STRING The ID of the agent pool used to execute run stages. Overrides the default account-level and environment-level pools.
-auto-apply=BOOLEAN Indicates whether `terraform apply` should automatically run when terraform plan ends without error. Default `false`.
-auto-destroy-days=INTEGER How many days should the workspace exist.
interface conversion: interface {} is float64, not string
Doing some reverse engineering & looking into how it generates these help strings, I think it has to do with the -auto-destroy-days flag, whose docs look to use an enum for acceptable flag values and not a string, hence the error. I'm not sure, though; I am not familiar with Go.
Note: the Build date: unknown output for -version is an unrelated separate issue raised in #99 . Older versions output the correct version
When providing the
-helpcommand to workspace creation / mutation commands, e.g.create-workspaceorupdate-workspaceainterface conversion: interface {} is float64, not stringerror occurs. I am using zsh, but have tried with multiple versions of the cli & with bash and the same error occursDoing some reverse engineering & looking into how it generates these help strings, I think it has to do with the
-auto-destroy-daysflag, whose docs look to use an enum for acceptable flag values and not a string, hence the error. I'm not sure, though; I am not familiar with Go.Note: the
Build date: unknownoutput for-versionis an unrelated separate issue raised in #99 . Older versions output the correct version