Small cloud fixes

This commit is contained in:
Dmitry Petrov
2017-05-02 23:03:25 -07:00
parent 819af1cd22
commit 1cc813027f
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -20,6 +20,8 @@ class CmdInit(CmdBase):
DataDir = {}
CacheDir = {}
StateDir = {}
# Supported clouds: AWS, GCP
Cloud = AWS
StoragePath =
+2 -2
View File
@@ -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: