From 28918af2a326be816406a07fee929690b4d9032c Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 20 Aug 2013 17:03:09 +0200 Subject: [PATCH] feature #2248: add --spice parameter to onevm/onetemplate create --- src/cli/one_helper.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index c36c59dfad..0e5604dc14 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -186,6 +186,11 @@ EOT :large => '--vnc', :description => 'Add VNC server to the VM' }, + { + :name => 'spice', + :large => '--spice', + :description => 'Add spice server to the VM' + }, { :name => 'ssh', :large => '--ssh [file]', @@ -816,6 +821,10 @@ EOT template<<'GRAPHICS=[ TYPE="vnc", LISTEN="0.0.0.0" ]'<<"\n" end + if options[:spice] + template<<'GRAPHICS=[ TYPE="spice", LISTEN="0.0.0.0" ]'<<"\n" + end + context=create_context(options) template<