Looks like the dbFlag and apiFlag are incorrectly set when calling osctrl-cli env quick-addhere
Looking at the code this action queries the DB but looks like apiFlag is set to true and dbFlag should be set instead.
Could not figure out where in the code this is happening to create a PR.
I can see that the quick-add wrapper is set here but I do not see any reference to this flags so not sure where they are inherited from.
Durring some testing I presume some other commands (like osctrl-cli settings show) have this problem also because they result in a panic error:
panic: runtime error: invalid memory address or nil pointer dereference
Hello
Looks like the
dbFlag
andapiFlag
are incorrectly set when callingosctrl-cli env quick-add
hereLooking at the code this action queries the DB but looks like
apiFlag
is set totrue
anddbFlag
should be set instead.Could not figure out where in the code this is happening to create a PR. I can see that the quick-add wrapper is set here but I do not see any reference to this flags so not sure where they are inherited from.
Durring some testing I presume some other commands (like
osctrl-cli settings show
) have this problem also because they result in a panic error:panic: runtime error: invalid memory address or nil pointer dereference