command/push: no version on GET should be okay

This commit is contained in:
Mitchell Hashimoto 2015-03-24 13:59:13 -07:00
parent 19c1771438
commit 86f92119e2
1 changed files with 6 additions and 1 deletions

View File

@ -231,7 +231,12 @@ func (c *atlasPushClient) Get(name string) (map[string]string, error) {
return nil, err
}
return version.Variables, nil
var variables map[string]string
if version != nil {
variables = version.Variables
}
return variables, nil
}
func (c *atlasPushClient) Upsert(opts *pushUpsertOptions) (int, error) {