google cloud: fix cloud settings and requirements

These are to allow using OAuth with your dvc, as
this is the recomended way to access gcp.

Fixes #203

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2017-09-14 22:23:22 +03:00
parent 94532c869d
commit 0c561e7f12
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ class DataCloudGCP(DataCloudBase):
""" DataCloud class for Google Cloud Platform """
@property
def gc_project_name(self):
return self._cloud_config.get('ProjectName', None)
return self._cloud_settings.cloud_config.get('ProjectName', None)
def sanity_check(self):
project = self.gc_project_name
+1
View File
@@ -88,3 +88,4 @@ colorama==0.3.9
google-compute-engine==2.4.1
configobj==5.0.6
networkx==1.11
gcs-oauth2-boto-plugin==1.14
+1
View File
@@ -94,6 +94,7 @@ install_requires = [
'google-compute-engine==2.4.1',
'configobj==5.0.6',
'networkx==1.11',
'gcs-oauth2-boto-plugin==1.14',
]
if platform.system() == 'Darwin':