summaryrefslogtreecommitdiffstats
path: root/formats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-07-02 23:21:18 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-07-02 23:44:08 +0200
commit8f2166eb9658b939ed054899db6e95039750f1f2 (patch)
tree99ae6a020de7bb366797a63274bb686da43c8dd8 /formats
parent71ca12ec51eb0d02bb85edebdb63321b3661bcef (diff)
downloadclufter-8f2166eb9658b939ed054899db6e95039750f1f2.tar.gz
clufter-8f2166eb9658b939ed054899db6e95039750f1f2.tar.xz
clufter-8f2166eb9658b939ed054899db6e95039750f1f2.zip
formats/simpleconfig: fix issues with a grammar sample
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'formats')
-rw-r--r--formats/simpleconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/formats/simpleconfig.py b/formats/simpleconfig.py
index 1d197b0..af32ad7 100644
--- a/formats/simpleconfig.py
+++ b/formats/simpleconfig.py
@@ -29,16 +29,16 @@ class simpleconfig(SimpleFormat):
('corosync-ONLY-INTERNAL-TAG-NOT-EXTERNALIZED-ANYWAY',
[],
- [('totem', [('version', '2'), ('cluster_name', 'aus-cluster')], None),
+ [('totem', [('version', '2'), ('cluster_name', 'aus-cluster')], {}),
('nodelist',
[],
- [('node', [('id', '1'), ('ring0_addr', 'lolek.example.com')], None),
- ('node', [('id', '2'), ('ring0_addr', 'bolek.example.com')], None)]),
+ [('node', [('nodeid', '1'), ('ring0_addr', 'lolek.example.com')], []),
+ ('node', [('nodeid', '2'), ('ring0_addr', 'bolek.example.com')], [])]),
('quorum',
[('provider', 'corosync_votequorum'),
('expected_votes', '1'),
('two_node', '1')],
- None)])
+ [])])
"""
# NOTE yacc-based parser in fence-virt
native_protocol = STRUCT = Protocol('struct')