Skip to content

Commit 479c954

Browse files
Merge pull request #1934 from edsonarios/issue1933
Updated command - slcli cdn purge
2 parents 2bdd727 + ca44f08 commit 479c954

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

SoftLayer/managers/cdn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def purge_content(self, unique_id, path):
140140
:param str path: A string of url or path that should be purged.
141141
:returns: A Container_Network_CdnMarketplace_Configuration_Cache_Purge array object
142142
"""
143-
path = f"/{path}"
144143
return self.cdn_purge.createPurge(unique_id, path)
145144

146145
def get_usage_metrics(self, unique_id, history=30, frequency="aggregate"):

tests/managers/cdn_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_remove_origin(self):
109109
args=args)
110110

111111
def test_purge_content(self):
112-
self.cdn_client.purge_content("12345", "example1")
112+
self.cdn_client.purge_content("12345", "/example1")
113113

114114
args = ("12345",
115115
"/example1")

0 commit comments

Comments
 (0)