We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ef580e commit 9ceccb1Copy full SHA for 9ceccb1
SoftLayer/utils.py
@@ -327,11 +327,12 @@ def timestamp(date):
327
328
329
def days_to_datetime(days):
330
- """ Returns the datetime value of last N days.
+ """Returns the datetime value of last N days.
331
332
:param int days: From 0 to N days
333
:returns int: The datetime of last N days or datetime.now() if days <= 0.
334
"""
335
+
336
date = datetime.datetime.now()
337
338
if days > 0:
tests/managers/cdn_tests.py
@@ -5,9 +5,9 @@
5
:license: MIT, see LICENSE for more details.
6
7
8
+from SoftLayer.managers import cdn
9
from SoftLayer import testing
10
from SoftLayer import utils
-from SoftLayer.managers import cdn
11
12
13
class CDNTests(testing.TestCase):
0 commit comments