From 86f92119e25d0593a8ed4e91c5a11e92d9f6ac5d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 24 Mar 2015 13:59:13 -0700 Subject: [PATCH] command/push: no version on GET should be okay --- command/push.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command/push.go b/command/push.go index ef5d3adfa..63b6d2d69 100644 --- a/command/push.go +++ b/command/push.go @@ -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) {