Skip to content

Commit 615dbd0

Browse files
committed
Solved comments
1 parent c563cb3 commit 615dbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SoftLayer/managers/cdn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ 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-
144-
return self.cdn_purge.createPurge(unique_id, "/" + path)
143+
path = "/{}".format(path)
144+
return self.cdn_purge.createPurge(unique_id, path)
145145

146146
def get_usage_metrics(self, unique_id, history=30, frequency="aggregate"):
147147
"""Retrieves the cdn usage metrics.

0 commit comments

Comments
 (0)