From 7e66fc50720a43f4a4708e358631a391d58958a6 Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 18 Nov 2013 16:28:05 -0500 Subject: [PATCH] fixed bug 3904, if the environements dir doesn't exsit, create it. --- xCAT-OpenStack/lib/perl/xCAT_plugin/cloud.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-OpenStack/lib/perl/xCAT_plugin/cloud.pm b/xCAT-OpenStack/lib/perl/xCAT_plugin/cloud.pm index b1c91fa37..f7c9cf263 100644 --- a/xCAT-OpenStack/lib/perl/xCAT_plugin/cloud.pm +++ b/xCAT-OpenStack/lib/perl/xCAT_plugin/cloud.pm @@ -179,6 +179,10 @@ sub process_request $callback->($rsp); next; } + + unless ( -d "$repos/environments") { + mkdir("$repos/environments", 0777); + } my $tmperr = cloudvars( $tmplfile,