onenode.service in error when VM state file is not present
* scripts/onevm-all: truncate file only if it exists. Ref: #20338
This commit is contained in:
parent
e9ff4ad34c
commit
e65f054237
|
@ -221,7 +221,7 @@ begin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if options[:action] == "resume"
|
if options[:action] == "resume"
|
||||||
File.truncate(RUNVMFILE, 0)
|
File.truncate(RUNVMFILE, 0) if File.exists?(RUNVMFILE)
|
||||||
end
|
end
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
puts e.message
|
puts e.message
|
||||||
|
|
Loading…
Reference in New Issue