Skip to content

Commit

Permalink
Speicfy createTeam for json marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
andscoop committed Jul 3, 2018
1 parent cc47573 commit 69d1d1f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion houston/types.go
Expand Up @@ -6,7 +6,7 @@ type HoustonResponse struct {
CreateDeployment *Status `json:"createDeployment,omitempty"`
CreateToken *AuthUser `json:"createToken,omitempty"`
CreateUser *Token `json:"createUser,omitempty"`
CreateWorkspace *Workspace `json:"createWorkspace,omitempty"`
CreateWorkspace *Workspace `json:"createTeam,omitempty"`
FetchDeployments []Deployment `json:"fetchDeployments,omitempty"`
GetAuthConfig *AuthConfig `json:"authConfig,omitempty"`
GetWorkspace []Workspace `json:"teams,omitempty"`
Expand Down
15 changes: 8 additions & 7 deletions messages/messages.go
Expand Up @@ -46,13 +46,14 @@ var (
EE_LINK_FLOWER = "Grafana Dashboard: https://%s-grafana.%s"
EE_LINK_GRAFANA = "Flower Dashboard: https://%s-flower.%s"

HOUSTON_BASIC_AUTH_DISABLED = "Basic authentication is disabled, conact administrator or defer back to oAuth"
HOUSTON_DEPLOYING_PROMPT = "Deploying: %s\n"
HOUSTON_NO_DEPLOYMENTS_ERROR = "No airflow deployments found"
HOUSTON_SELECT_DEPLOYMENT_PROMT = "Select which airflow deployment you want to deploy to:"
HOUSTON_OAUTH_REDIRECT = "Please visit the following URL, authenticate and paste token in next prompt "
HOUSTON_OAUTH_DISABLED = "OAuth is disabled, contact administrator or defer to basic auth"
HOUSTON_INVALID_DEPLOYMENT_KEY = "Invalid deployment selection"
HOUSTON_BASIC_AUTH_DISABLED = "Basic authentication is disabled, conact administrator or defer back to oAuth"
HOUSTON_DEPLOYING_PROMPT = "Deploying: %s\n"
HOUSTON_NO_DEPLOYMENTS_ERROR = "No airflow deployments found"
HOUSTON_SELECT_DEPLOYMENT_PROMT = "Select which airflow deployment you want to deploy to:"
HOUSTON_OAUTH_REDIRECT = "Please visit the following URL, authenticate and paste token in next prompt "
HOUSTON_OAUTH_DISABLED = "OAuth is disabled, contact administrator or defer to basic auth"
HOUSTON_INVALID_DEPLOYMENT_KEY = "Invalid deployment selection"
HOUSTON_WORKSPACE_CREATE_SUCCESS = "Successfully created %s (%s)"

INPUT_PASSWORD = "Password: "
INPUT_USERNAME = "Username (leave blank for oAuth): "
Expand Down
4 changes: 1 addition & 3 deletions workspace/workspace.go
Expand Up @@ -19,9 +19,7 @@ func Create(label, desc string) error {
if err != nil {
return err
}

fmt.Printf(messages.HOUSTON_WORKSPACE_CREATE_SUCCESS, w.Label, w.Description)

fmt.Printf(messages.HOUSTON_WORKSPACE_CREATE_SUCCESS, w.Label, w.Uuid)
return nil
}

Expand Down

0 comments on commit 69d1d1f

Please sign in to comment.