Skip to content

Commit e825ba0

Browse files
committed
Create parent directory in merge_config_file
The code accounts for the config file not existing but it does not account for the parent directory missing. This is currently breaking any Ironic jobs that disable Nova. Change-Id: Ia5fcfe6c63f5cc40b11f7e1f3be244d7897f26f6
1 parent db305d2 commit e825ba0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

inc/meta-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function merge_config_file {
9090
local real_configfile
9191
real_configfile=$(eval echo $configfile)
9292
if [ ! -f $real_configfile ]; then
93+
mkdir -p $(dirname $real_configfile) || die $LINENO "could not create the directory of $real_configfile ($configfile)"
9394
touch $real_configfile || die $LINENO "could not create config file $real_configfile ($configfile)"
9495
fi
9596

0 commit comments

Comments
 (0)