mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-15 05:57:23 +03:00
feature #1370: fix alias method in OpenNebulaVNC
This commit is contained in:
parent
1052b4b168
commit
55b3d1a9ad
@ -216,7 +216,6 @@ class OpenNebulaVNC
|
||||
end
|
||||
end
|
||||
|
||||
alias_method :get_pid, :is_running?
|
||||
def is_running?
|
||||
if File.exist?(@lock_file)
|
||||
pid=File.read(@lock_file).strip
|
||||
@ -231,6 +230,7 @@ class OpenNebulaVNC
|
||||
|
||||
false
|
||||
end
|
||||
alias_method :get_pid, :is_running?
|
||||
|
||||
def start_daemon(cmd, log)
|
||||
pid=spawn(*cmd.split(" "),
|
||||
|
Loading…
x
Reference in New Issue
Block a user