Skip to content

Commit

Permalink
Remove f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
stalabi1 committed Oct 15, 2024
1 parent 17619b2 commit f54cae8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/module_utils/network/sonic/config/copp/copp.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,16 +488,16 @@ def get_delete_copp_requests(self, commands, have, is_delete_all):
return requests

def get_delete_copp_group_request(self, copp_name, attr):
url = f'{COPP_PATH}/copp-groups/copp-group={copp_name}'
url = '%s/copp-groups/copp-group=%s' % (COPP_PATH, copp_name)
if attr:
url += f'/config/{attr}'
url += '/config/%s' % (attr)
request = {'path': url, 'method': DELETE}
return request

def get_delete_copp_trap_request(self, name, attr):
url = f'{COPP_PATH}/copp-traps/copp-trap={name}'
url = '%s/copp-traps/copp-trap=%s' % (COPP_PATH, name)
if attr:
url += f'/config/{attr}'
url += '/config/%s' % (attr)
request = {'path': url, 'method': DELETE}
return request

Expand Down

0 comments on commit f54cae8

Please sign in to comment.