Switch kpod save to use config

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-07-28 15:51:11 -04:00
parent d2a82a28c1
commit 2cb57e0cb5

View file

@ -50,7 +50,11 @@ func saveCmd(c *cli.Context) error {
return errors.Errorf("need at least 1 argument")
}
store, err := getStore(c)
config, err := getConfig(c)
if err != nil {
return errors.Wrapf(err, "could not get config")
}
store, err := getStore(config)
if err != nil {
return err
}