Skip to content

Commit 94a88e9

Browse files
authored
Merge pull request #8 from stat-kwon/master
Remove transaction variable used when initializing in connector and manager
2 parents 653084d + cea9b4c commit 94a88e9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/cloudforet/monitoring/libs/google_cloud_connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class GoogleCloudConnector(BaseConnector):
1313
google_client_service = 'compute'
1414
version = 'v1'
1515

16-
def __init__(self, **kwargs):
16+
def __init__(self, *args, **kwargs):
1717
"""
1818
kwargs
1919
- schema
@@ -27,7 +27,7 @@ def __init__(self, **kwargs):
2727
- ...
2828
"""
2929

30-
super().__init__(transaction=None, config=None)
30+
super().__init__(*args, **kwargs)
3131
secret_data = kwargs.get('secret_data')
3232
self.project_id = secret_data.get('project_id')
3333
self.credentials = google.oauth2.service_account.Credentials.from_service_account_info(secret_data)

src/cloudforet/monitoring/manager/monitoring_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99

1010
class MonitoringManager(BaseManager):
11-
def __init__(self, transaction):
12-
super().__init__(transaction)
11+
def __init__(self, *args, **kwargs):
12+
super().__init__(*args, **kwargs)
1313

1414
def list_logs(self, params):
1515
query = params.get('query', {})

0 commit comments

Comments
 (0)