Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #47 from deniseschannon/master
Browse files Browse the repository at this point in the history
Updated for logs to print out stack instead of environment
  • Loading branch information
Denise committed Aug 21, 2015
2 parents d774e4d + 8da8ecd commit 8cb38c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rancher/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ func (c *Context) loadEnv() error {

for _, env := range envs.Data {
if strings.EqualFold(c.ProjectName, env.Name) {
logrus.Debugf("Found environment: %s(%s)", env.Name, env.Id)
logrus.Debugf("Found stack: %s(%s)", env.Name, env.Id)
c.Environment = &env
return nil
}
}

logrus.Infof("Creating environment %s", c.ProjectName)
logrus.Infof("Creating stack %s", c.ProjectName)
env, err := c.Client.Environment.Create(&rancherClient.Environment{
Name: c.ProjectName,
})
Expand Down
2 changes: 1 addition & 1 deletion rancher/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (r *RancherService) resolveServiceAndEnvironmentId(name string) (string, st
}

if len(envs.Data) == 0 {
return "", "", fmt.Errorf("Failed to find environment: %s", parts[0])
return "", "", fmt.Errorf("Failed to find stack: %s", parts[0])
}

return parts[1], envs.Data[0].Id, nil
Expand Down

0 comments on commit 8cb38c1

Please sign in to comment.