mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Only load one_tm in onevm for recover --interactive
This commit is contained in:
1 parent
9a4ea9caeb
commit
809fa79aa7
1 file changed
+10
-1
@@ -28,7 +28,6 @@ $: << MAD_LOCATION
|
||||
|
||||
require 'one_helper'
|
||||
require 'optparse/time'
|
||||
require 'one_tm'
|
||||
|
||||
class String
|
||||
def red
|
||||
@@ -340,6 +339,16 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||
}
|
||||
|
||||
def recover_retry_interactive(vm)
|
||||
begin
|
||||
require 'one_tm'
|
||||
rescue LoadError
|
||||
STDERR.puts <<-EOT
|
||||
one_tm library not found. Make sure you execute recover --interactive
|
||||
in the frontend machine.
|
||||
EOT
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
# Disable CTRL-C in the menu
|
||||
trap("SIGINT") { }
|
||||
|
||||
|
||||
Reference in new issue
Block a user