Ubuntu Pastebin

Paste from smoser at Wed, 15 Jun 2016 18:30:54 +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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
=== modified file 'cloudinit/cmd/main.py'
--- cloudinit/cmd/main.py	2016-06-14 22:00:40 +0000
+++ cloudinit/cmd/main.py	2016-06-15 18:13:14 +0000
@@ -30,7 +30,6 @@
 import traceback
 
 from cloudinit import patcher
-patcher.patch()
 
 from cloudinit import log as logging
 from cloudinit import netinfo
@@ -47,6 +46,7 @@
 from cloudinit.settings import (PER_INSTANCE, PER_ALWAYS, PER_ONCE,
                                 CLOUD_CONFIG)
 
+patcher.patch()
 
 # Pretty little cheetah formatted welcome message template
 WELCOME_MSG_TPL = ("Cloud-init v. ${version} running '${action}' at "

=== modified file 'tests/unittests/test_cli.py'
--- tests/unittests/test_cli.py	2016-06-14 21:56:51 +0000
+++ tests/unittests/test_cli.py	2016-06-15 18:18:29 +0000
@@ -1,11 +1,6 @@
-import imp
-import os
 import six
-import sys
 
 from . import helpers as test_helpers
-mock = test_helpers.mock
-
 from cloudinit.cmd import main as cli
 
 

=== modified file 'tools/run-pep8'
--- tools/run-pep8	2016-03-03 22:20:10 +0000
+++ tools/run-pep8	2016-06-15 18:11:40 +0000
@@ -1,8 +1,6 @@
 #!/bin/bash
 
-pycheck_dirs=( "cloudinit/" "bin/" "tests/" "tools/" )
-# FIXME: cloud-init modifies sys module path, pep8 does not like
-# bin_files=( "bin/cloud-init" )
+pycheck_dirs=( "cloudinit/" "tests/" "tools/" )
 CR="
 "
 [ "$1" = "-v" ] && { verbose="$1"; shift; } || verbose=""

=== modified file 'tools/run-pyflakes'
--- tools/run-pyflakes	2016-03-03 22:32:32 +0000
+++ tools/run-pyflakes	2016-06-15 18:18:41 +0000
@@ -3,7 +3,7 @@
 PYTHON_VERSION=${PYTHON_VERSION:-2}
 CR="
 "
-pycheck_dirs=( "cloudinit/" "bin/" "tests/" "tools/" )
+pycheck_dirs=( "cloudinit/" "tests/" "tools/" )
 
 set -f
 if [ $# -eq 0 ]; then
Download as text