From e65f054237573781a9094273ab6cef558489fc16 Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Wed, 10 May 2017 17:25:23 +0200 Subject: [PATCH] onenode.service in error when VM state file is not present * scripts/onevm-all: truncate file only if it exists. Ref: #20338 --- scripts/onevm-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/onevm-all b/scripts/onevm-all index 8d43ce4..af7fbd8 100755 --- a/scripts/onevm-all +++ b/scripts/onevm-all @@ -221,7 +221,7 @@ begin end end if options[:action] == "resume" - File.truncate(RUNVMFILE, 0) + File.truncate(RUNVMFILE, 0) if File.exists?(RUNVMFILE) end rescue Exception => e puts e.message