Ubuntu Pastebin

Paste from smoser at Tue, 24 May 2016 23:22:09 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
=== modified file 'cloudinit/ec2_utils.py'
--- cloudinit/ec2_utils.py	2015-03-02 20:41:16 +0000
+++ cloudinit/ec2_utils.py	2016-05-24 23:21:53 +0000
@@ -144,9 +144,10 @@
     """Returns if a request should retry based on a given set of codes that
     case retrying to be stopped/skipped.
     """
-    if cause.code in status_codes:
-        return False
-    return True
+    print("status_codes=%s" % status_codes)
+    print("_request_args=%s" % _request_args)
+    print("cause=%s" % cause)
+    return cause.code in status_codes
 
 
 def get_instance_userdata(api_version='latest',

=== modified file 'test-requirements.txt'
--- test-requirements.txt	2016-05-24 23:08:14 +0000
+++ test-requirements.txt	2016-05-24 23:10:51 +0000
@@ -4,7 +4,7 @@
 nose
 
 # Only needed if you want to know the test times
-# nose-timer
+nose-timer
 
 # Only really needed on older versions of python
 contextlib2

=== modified file 'tox.ini'
--- tox.ini	2016-05-24 21:05:20 +0000
+++ tox.ini	2016-05-24 23:10:43 +0000
@@ -3,7 +3,7 @@
 recreate = True
 
 [testenv]
-commands = python -m nose {posargs:tests}
+commands = python -m nose --with-timer --timer-top-n=10 {posargs:tests}
 deps = -r{toxinidir}/test-requirements.txt
     -r{toxinidir}/requirements.txt
 
Download as text