diff options
-rw-r--r-- | devstack/lib/ironic | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 11754d4d1..e1b97568c 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -826,8 +826,8 @@ function configure_ironic_dirs { fi # Create the logs directory when saving the deploy logs to the filesystem - if [ "$IRONIC_DEPLOY_LOGS_STORAGE_BACKEND" = "local"] && [ "$IRONIC_DEPLOY_LOGS_COLLECT" != "never" ]; then - sudo install -d -o $STACK_USER $IRONIC_DEPLOY_LOGS_LOCAL_PATH + if [[ "$IRONIC_DEPLOY_LOGS_STORAGE_BACKEND" == "local" && "$IRONIC_DEPLOY_LOGS_COLLECT" != "never" ]]; then + install -d -o $STACK_USER $IRONIC_DEPLOY_LOGS_LOCAL_PATH fi } |