You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ novops run -e prod-rw sh -c "echo test=$AWS_DEFAULT_REGION"
Error: An error occured. Set environment variable RUST_LOG=[trace|debug|info|warn] or RUST_BACKTRACE=1 for more verbosity.
Caused by:
0: Failed to load environment and exec command.
1: Error reading config file.
2: Failed to open Novops config "echo test=eu-central-1"
3: No such file or directory (os error 2)
In 0, it would be nice to show what environment it tried to load in Failed to load environment <prod-rw>
As for 2. I think novops is trying to load its own config file and parsing the -c as its own instead of sh's.
Not sure how it works but maybe the argument parsing could stop after the first positional argument ? i.e., once it sees sh then all of the rest is the command to be run ?
Alternatively make more proeminent that novops run should be run as novops run --
The text was updated successfully, but these errors were encountered:
novops run -e prod-rw -- sh -c "echo test=$AWS_DEFAULT_REGION"
with -- to separate Novops args from your command's args.
In 0, it would be nice to show what environment it tried to load in Failed to load environment
Certainly :)
once it sees sh then all of the rest is the command to be run ?
I'm not sure how practical that is. Tools like kubectl exec enforce -- usage (eg. kubectl exec -it [...] -- sh -c "echo foo". I'll try to see if it's possible.
Alternatively make more proeminent that novops run should be run as novops run --
Let's assume the following .novops.yml
If I run
In 0, it would be nice to show what environment it tried to load in
Failed to load environment <prod-rw>
As for 2. I think novops is trying to load its own config file and parsing the
-c
as its own instead of sh's.Not sure how it works but maybe the argument parsing could stop after the first positional argument ? i.e., once it sees
sh
then all of the rest is the command to be run ?Alternatively make more proeminent that novops run should be run as
novops run --
The text was updated successfully, but these errors were encountered: