Skip to content

Commit

Permalink
Saimon/remove prints (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonation committed Aug 3, 2022
1 parent 26d2ac8 commit 15b1722
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cterasdk/client/cteraclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def _ctera_exec(self, baseurl, path, exec_type, name, param):
obj.type = exec_type
obj.name = name
obj.param = param
print(toxmlstr(obj))
function = Command(HTTPClient.post, self.http_client, geturi(baseurl, path), ContentType.textplain, toxmlstr(obj))
return self._execute(function)

Expand Down
2 changes: 1 addition & 1 deletion cterasdk/core/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def add(self, name, policy_type=enum.PolicyType.SELECT, description=None):
response = self._portal.execute('', 'addZone', param)
try:
self._process_response(response)
logging.getLogger().info('Zone added. %s', {'name': name})
except CTERAException as error:
logging.getLogger().error('Zone creation failed. %s', {'rc': response.rc})
raise error
logging.getLogger().info('Zone added. %s', {'name': name})

def delete(self, name):
"""
Expand Down

0 comments on commit 15b1722

Please sign in to comment.