From 2447e7d99e034e93df2270750673f0c4a3e19103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tino=20V=C3=A1zquez?= Date: Fri, 17 Jun 2011 13:14:07 +0200 Subject: [PATCH] CLI one_helper allows for changes in secret and endpoint --- src/cli/one_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index 52ea8340ca..4406340d11 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -64,8 +64,8 @@ EOT OPTIONS = XML, NUMERIC, KILOBYTES class OneHelper - def initialize - @client = OpenNebula::Client.new + def initialize(secret=nil, endpoint=nil) + @client = OpenNebula::Client.new(secret,endpoint) @translation_hash = nil end