Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 758e836

Browse files
author
Romain Dartigues
committed
systemvm: fix set_redundant broken since bdda01d
1 parent 138397b commit 758e836

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

systemvm/patches/debian/config/opt/cloud/bin/set_redundant.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
# This file is used by the tests to switch the redundancy status
20+
# This file is used to switch the redundancy status by
21+
# test/systemvm/test_update_config.py
2122

22-
from cs.CsConfig import CsConfig
23-
from optparse import OptionParser
2423
import logging
24+
from optparse import OptionParser
25+
from cs.CsConfig import CsConfig
2526

2627
parser = OptionParser()
2728
parser.add_option("-e", "--enable",
@@ -37,11 +38,9 @@
3738
logging.basicConfig(filename=config.get_logger(),
3839
level=config.get_level(),
3940
format=config.get_format())
40-
config.set_cl()
41-
4241
if options.enable:
43-
config.get_cmdline().set_redundant("true")
42+
config.cmdline().set_redundant("true")
4443
if options.disable:
45-
config.get_cmdline().set_redundant("false")
44+
config.cmdline().set_redundant("false")
4645

47-
config.get_cmdline().save()
46+
config.cmdline().save()

0 commit comments

Comments
 (0)