Fix --rev option for pure protobuf support
Change-Id: Ib66604c30159a73f96f529eea40fea329627132f
diff --git a/lib/xos-genx/xosgenx/generator.py b/lib/xos-genx/xosgenx/generator.py
index 239a42a..668d351 100755
--- a/lib/xos-genx/xosgenx/generator.py
+++ b/lib/xos-genx/xosgenx/generator.py
@@ -24,9 +24,9 @@
if hasattr(args, 'rev') and args.rev:
v = Proto2XProto()
ast.accept(v)
- else:
- v = XOS2Jinja()
- ast.accept(v)
+
+ v = XOS2Jinja()
+ ast.accept(v)
return v
@staticmethod
@@ -220,4 +220,4 @@
elif args.output is not None and args.write_to_file == "single":
XOSGenerator._write_single_file(rendered, args.output, args.dest_file, args.quiet)
- return rendered
\ No newline at end of file
+ return rendered