Skip to content
This repository was archived by the owner on Aug 12, 2019. It is now read-only.

Fix the problem of cloud_account_id not found #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deepsecurity/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get(self):
if response['data'] and response['data'].has_key('cloudAccountListing') and response['data']['cloudAccountListing'].has_key('cloudAccounts'):
for cloud_account in response['data']['cloudAccountListing']['cloudAccounts']:
cloud_account_obj = CloudAccount(self.manager, cloud_account, self.log)
self[cloud_account_obj.cloud_account_id] = cloud_account_obj
self[cloud_account_obj.cloudAccountId] = cloud_account_obj

def add_aws_account(self, name, aws_access_key=None, aws_secret_key=None, region="all"):
"""
Expand Down Expand Up @@ -78,4 +78,4 @@ def add_aws_account(self, name, aws_access_key=None, aws_secret_key=None, region
class CloudAccount(core.CoreObject):
def __init__(self, manager=None, api_response=None, log_func=None):
self.manager = manager
if api_response: self._set_properties(api_response, log_func)
if api_response: self._set_properties(api_response, log_func)