Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_call() got an unexpected keyword argument 'gsutil' #4

Closed
zelima opened this issue Jan 14, 2019 · 1 comment
Closed

check_call() got an unexpected keyword argument 'gsutil' #4

zelima opened this issue Jan 14, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zelima
Copy link
Collaborator

zelima commented Jan 14, 2019

ckan-cloud-operator deis-instance create from-gcloud-envvars ... fails with the following error

  File "/usr/src/ckan-cloud-operator/ckan_cloud_operator/deis_ckan/db.py", line 18, in <lambda>
    is_created = self.instance.annotations.update_status(self.db_type, 'created', lambda: self._create())
  File "/usr/src/ckan-cloud-operator/ckan_cloud_operator/deis_ckan/db.py", line 69, in _create
    self._import_gcloud_sql_db()
  File "/usr/src/ckan-cloud-operator/ckan_cloud_operator/deis_ckan/db.py", line 169, in _import_gcloud_sql_db
    self._set_gcloud_storage_sql_permissions(importUrl)
  File "/usr/src/ckan-cloud-operator/ckan_cloud_operator/deis_ckan/db.py", line 146, in _set_gcloud_storage_sql_permissions
    gsutil=True
TypeError: check_call() got an unexpected keyword argument 'gsutil'

Looking at the check_call from gcloud.py it does not expect gsutil argument:

def check_call(cmd, project=None, with_activate=True):
    if with_activate: activate()
    ...

So I assume there should be with_activate=True instead of gsutil=True in db.py

@zelima
Copy link
Collaborator Author

zelima commented Jan 14, 2019

FIXED in eecb0f3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant