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
As you can see the command has been mangled and this is because seqerakit relies on type being the dict name for credentials objects. This appears to be inconsistent with other Tower resources which use name in the examples.
I'm suggesting that instead of this, when the tw command is constructed it uses the object names rather than relying on the positioning of the incoming yaml. So it explicitly refers to the type value when it builds the command.
This will also help when creating scripts to autogenerate yaml code for seqerakit as it means you're not having to put any conditionals in for credentials to ensure type is the dict name.
The text was updated successfully, but these errors were encountered:
Addressed this in #118. You should be able to create CEs, credentials and actions without explicit definition of type or file-path as the dict name. Also adds validation for these keys in the input YAML.
I try to deploy new credentials in Tower using
seqerakit
with the following yaml:and I get the following output in the logs:
DEBUG:root:DRYRUN: Running command tw credentials add --name foo --key ./key.json google --workspace foo/bar
As you can see the command has been mangled and this is because seqerakit relies on
type
being the dict name for credentials objects. This appears to be inconsistent with other Tower resources which usename
in the examples.I'm suggesting that instead of this, when the tw command is constructed it uses the object names rather than relying on the positioning of the incoming yaml. So it explicitly refers to the
type
value when it builds the command.This will also help when creating scripts to autogenerate yaml code for
seqerakit
as it means you're not having to put any conditionals in for credentials to ensure type is the dict name.The text was updated successfully, but these errors were encountered: