From 6253c0610c78efde1426e25022237ffb3ad2b646 Mon Sep 17 00:00:00 2001 From: sergio semedi Date: Wed, 11 Jul 2018 11:15:39 +0200 Subject: [PATCH] vCenter VMM broken pipe failure fixed --- src/vmm_mad/remotes/vcenter/prereconfigure | 21 ++++++++++++++++++++- src/vmm_mad/remotes/vcenter/reconfigure | 2 ++ 2 files changed, 22 insertions(+), 1 deletion(-) mode change 120000 => 100644 src/vmm_mad/remotes/vcenter/prereconfigure diff --git a/src/vmm_mad/remotes/vcenter/prereconfigure b/src/vmm_mad/remotes/vcenter/prereconfigure deleted file mode 120000 index 300563f2adf..00000000000 --- a/src/vmm_mad/remotes/vcenter/prereconfigure +++ /dev/null @@ -1 +0,0 @@ -../common/dummy.sh \ No newline at end of file diff --git a/src/vmm_mad/remotes/vcenter/prereconfigure b/src/vmm_mad/remotes/vcenter/prereconfigure new file mode 100644 index 00000000000..e9a57e55834 --- /dev/null +++ b/src/vmm_mad/remotes/vcenter/prereconfigure @@ -0,0 +1,20 @@ +#!/bin/sh + +# -------------------------------------------------------------------------- # +# Copyright 2002-2018, OpenNebula Project, OpenNebula Systems # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # +cat - + +exit 0 diff --git a/src/vmm_mad/remotes/vcenter/reconfigure b/src/vmm_mad/remotes/vcenter/reconfigure index eabe53f3693..c144a536847 100755 --- a/src/vmm_mad/remotes/vcenter/reconfigure +++ b/src/vmm_mad/remotes/vcenter/reconfigure @@ -16,6 +16,8 @@ # limitations under the License. # # ---------------------------------------------------------------------------- # +input = STDIN.read + ONE_LOCATION=ENV["ONE_LOCATION"] if !defined?(ONE_LOCATION) if !ONE_LOCATION