Fix boundary database init respecting format flag (#1204)
The output was ready for json format but the flag wasn't included.
This commit is contained in:
1 parent
120b5e4c79
commit
c22631fbca
2 files changed
+4
-2
No files matched your search
@@ -73,7 +73,7 @@ func (c *InitCommand) Help() string {
|
||||
}
|
||||
|
||||
func (c *InitCommand) Flags() *base.FlagSets {
|
||||
set := c.FlagSet(base.FlagSetHTTP)
|
||||
set := c.FlagSet(base.FlagSetOutputFormat)
|
||||
|
||||
f := set.NewFlagSet("Command Options")
|
||||
|
||||
@@ -371,7 +371,7 @@ func (c *InitCommand) Run(args []string) (retCode int) {
|
||||
case "table":
|
||||
c.UI.Output(generateInitialScopeTableOutput(projScopeInfo))
|
||||
case "json":
|
||||
jsonMap["proj_scope"] = projScopeInfo
|
||||
jsonMap["project_scope"] = projScopeInfo
|
||||
}
|
||||
|
||||
if c.flagSkipHostResourcesCreation {
|
||||
|
||||
Reference in new issue
Block a user