From 650a9f372b60a0d68855db8dcfd9f78751424569 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 7 Apr 2015 16:46:56 -0700 Subject: [PATCH] command: implement proper module.Storage interface --- command/module_storage.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/command/module_storage.go b/command/module_storage.go index 846942aaaf..e17786a807 100644 --- a/command/module_storage.go +++ b/command/module_storage.go @@ -14,16 +14,16 @@ type uiModuleStorage struct { Ui cli.Ui } -func (s *uiModuleStorage) Dir(source string) (string, bool, error) { - return s.Storage.Dir(source) +func (s *uiModuleStorage) Dir(key string) (string, bool, error) { + return s.Storage.Dir(key) } -func (s *uiModuleStorage) Get(source string, update bool) error { +func (s *uiModuleStorage) Get(key string, source string, update bool) error { updateStr := "" if update { updateStr = " (update)" } s.Ui.Output(fmt.Sprintf("Get: %s%s", source, updateStr)) - return s.Storage.Get(source, update) + return s.Storage.Get(key, source, update) }