SHA256
1
0
forked from pool/cloud-init

Accepting request 315241 from Cloud:Tools

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/315241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=23
This commit is contained in:
Stephan Kulow 2015-07-14 15:43:06 +00:00 committed by Git OBS Bridge
commit dc3424e990
3 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 29 14:51:15 UTC 2015 - rjschwei@suse.com
- Add no_logic_change.patch to undo upstream logic changes introduced during
style clean up
-------------------------------------------------------------------
Wed May 20 18:27:02 UTC 2015 - rjschwei@suse.com

View File

@ -39,6 +39,7 @@ Patch9: cloud-init-no-dmidecode-on-ppc64.patch
Patch10: cloud-init-no-user-lock-if-already-locked.patch
Patch11: dataSourceOpenNebula.patch
Patch12: fix-default-systemd-unit-dir.patch
Patch13: no_logic_change.patch
BuildRequires: fdupes
BuildRequires: filesystem
BuildRequires: python-devel
@ -136,6 +137,7 @@ Unit tests for the cloud-init tools
%patch10 -p1
%patch11 -p2
%patch12
%patch13
%if 0%{?suse_version} <= 1130
# disable ecdsa for SLE 11 (not available)

22
no_logic_change.patch Normal file
View File

@ -0,0 +1,22 @@
--- cloudinit/config/cc_rightscale_userdata.py.orig
+++ cloudinit/config/cc_rightscale_userdata.py
@@ -58,7 +58,7 @@ def handle(name, _cfg, cloud, log, _args
try:
mdict = parse_qs(ud)
- if mdict or MY_HOOKNAME not in mdict:
+ if not mdict or MY_HOOKNAME not in mdict:
log.debug(("Skipping module %s, "
"did not find %s in parsed"
" raw userdata"), name, MY_HOOKNAME)
--- cloudinit/util.py.orig
+++ cloudinit/util.py
@@ -1146,7 +1146,7 @@ def chownbyname(fname, user=None, group=
# this returns the specific 'mode' entry, cleanly formatted, with value
def get_output_cfg(cfg, mode):
ret = [None, None]
- if cfg or 'output' not in cfg:
+ if not cfg or 'output' not in cfg:
return ret
outcfg = cfg['output']