From 1cc813027fde74e618d33bc4e84c5b8cb9363252 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Tue, 2 May 2017 23:03:25 -0700 Subject: [PATCH] Small cloud fixes --- dvc/command/init.py | 2 ++ dvc/config.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dvc/command/init.py b/dvc/command/init.py index 4af5b8372..933f0e446 100644 --- a/dvc/command/init.py +++ b/dvc/command/init.py @@ -20,6 +20,8 @@ class CmdInit(CmdBase): DataDir = {} CacheDir = {} StateDir = {} + +# Supported clouds: AWS, GCP Cloud = AWS StoragePath = diff --git a/dvc/config.py b/dvc/config.py index a7df6da27..333651b77 100644 --- a/dvc/config.py +++ b/dvc/config.py @@ -147,7 +147,7 @@ class Config(ConfigI): @property def gc_project_name(self): - return self._config['GC']['ProjectName'] + return self._config['GCP']['ProjectName'] @property def cloud(self): @@ -237,7 +237,7 @@ class Config(ConfigI): errors.append('can\'t find aws credentials.') self._aws_creds = creds elif cloud == 'gcp': - project = self._config['GC'].get('ProjectName', None) + project = self._config['GCP'].get('ProjectName', None) if project is None or len(project) < 1: errors.append('can\'t read google cloud project name. Please set ProjectName in section GC.') else: