]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Some cosmetic changes 75/5375/1
authorDenis Meltsaykin <dmeltsaykin@mirantis.com>
Tue, 7 Apr 2015 12:42:33 +0000 (12:42 +0000)
committerDenis Meltsaykin <dmeltsaykin@mirantis.com>
Tue, 7 Apr 2015 12:43:13 +0000 (12:43 +0000)
Change-Id: I90d645b1f8a9009242f28ff807a6ad10f52a413e

scripts/apply_patches.py
scripts/patches.list

index 0c0d89a7dca54bfcf33c427cccdb52f607e67994..16f5707c8d4670142e7f72cc3aa0a78e22a601fc 100644 (file)
@@ -46,8 +46,7 @@ def read_config():
 
 def apply_patches():
     patches = cfg['patches']
-    if reverse != "": 
-        patches=reversed(cfg['patches'])
+    if reverse != "": patches.reverse()
     for node in cfg['nodes']:
         for patch in patches:
             LOG("\n>>>>>>>>>START of PATCHING {0} with {1} (dry-run:{2})\n\n".format(
index d02113ebaade08f3f3fea2aa2ae4ee4f7477d6e7..661abd9762e44dcdb6a9d0d2f3abe2520f62c066 100644 (file)
@@ -5,4 +5,4 @@
        "patches": [
                "./a.patch"
        ]
-}      
+}