[-]
[+]
|
Changed |
opennebula-driver-vmware.changes
|
|
[-]
[+]
|
Changed |
opennebula-driver-vmware.spec
^
|
|
[-]
[+]
|
Added |
vmware-imRemotesVmwareRCfix.patch
^
|
@@ -0,0 +1,22 @@
+--- im/remotes/vmware.rb.orig 2011-07-09 01:32:12.855567990 +0200
++++ im/remotes/vmware.rb 2011-07-09 01:32:59.886148818 +0200
+@@ -4,8 +4,10 @@
+
+ if !ONE_LOCATION
+ RUBY_LIB_LOCATION="/usr/lib/one/ruby"
++ VMWARERC_LOCATION="/etc/one/vmwarerc"
+ else
+ RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
++ VMWARERC_LOCATION=ONE_LOCATION+"/etc/vmwarerc"
+ end
+
+ $: << RUBY_LIB_LOCATION
+@@ -58,7 +60,7 @@
+ exit -1
+ end
+
+-load ENV['ONE_LOCATION'] + "/etc/vmwarerc"
++load VMWARERC_LOCATION
+
+ data = perform_action("virsh -c #{LIBVIRT_URI} --readonly nodeinfo")
+
|
[-]
[+]
|
Changed |
vmware-vmwarelib.patch
^
|
@@ -1,12 +1,20 @@
--- lib/vmwarelib.rb.orig 2011-07-09 00:14:27.337368199 +0200
-+++ lib/vmwarelib.rb 2011-07-09 00:16:54.651760445 +0200
-@@ -28,9 +28,11 @@
++++ lib/vmwarelib.rb 2011-07-09 01:55:45.499981783 +0200
+@@ -23,14 +23,16 @@
+ # Set up the environment for the driver #
+ # ---------------------------------------------------------------------------- #
+
+-ONE_LOCATION = ENV["ONE_LOCATION"]
++#ONE_LOCATION = ENV["ONE_LOCATION"]
+
if !ONE_LOCATION
- RUBY_LIB_LOCATION = "/usr/lib/one/ruby"
+- RUBY_LIB_LOCATION = "/usr/lib/one/ruby"
++# RUBY_LIB_LOCATION = "/usr/lib/one/ruby"
ETC_LOCATION = "/etc/one/"
+ BIN_LOCATION = "/usr/bin"
else
- RUBY_LIB_LOCATION = ONE_LOCATION + "/lib/ruby"
+- RUBY_LIB_LOCATION = ONE_LOCATION + "/lib/ruby"
++# RUBY_LIB_LOCATION = ONE_LOCATION + "/lib/ruby"
ETC_LOCATION = ONE_LOCATION + "/etc/"
+ BIN_LOCATION = ONE_LOCATION + "/bin"
end
|
[-]
[+]
|
Added |
vmware-vmwarerc.patch
^
|
@@ -0,0 +1,19 @@
+--- share/vmwarerc.orig 2011-04-14 16:20:37.000000000 +0200
++++ share/vmwarerc 2011-07-09 01:47:43.101155069 +0200
+@@ -30,7 +30,15 @@
+
+ # Loading the vmware library for mads
+ # Please leave this uncommented
+-load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"
++ONE_LOCATION=ENV["ONE_LOCATION"]
++
++if !ONE_LOCATION
++ VMWARELIB = "/usr/lib/one/ruby/vmwarelib.rb"
++else
++ VMWARELIB = ONE_LOCATION + "/lib/ruby/vmwarelib.rb"
++end
++
++load VMWARELIB
+
+ ENV['LANG']='C'
+
|