Fix for before option in archive_deleted_rows

Script fails with too many arguments when provided command like "$(date -d 'now - 2 days')" as the value for --before option. Addition of quotes fix the issue.

Change-Id: I0639d8aea368988976d5990c42e960de44844f61
This commit is contained in:
xuxant02@gmail.com 2021-09-21 11:42:20 +05:45
parent 54da75fd71
commit e4fffb30e5
3 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Nova
name: nova
version: 0.2.14
version: 0.2.15
home: https://docs.openstack.org/nova/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png
sources:

View File

@ -30,6 +30,6 @@ exec nova-manage db archive_deleted_rows \
--max_rows {{ .Values.conf.archive_deleted_rows.max_rows.rows }} \
{{- end }}
{{- if .Values.conf.archive_deleted_rows.before.enabled }}
--before {{ .Values.conf.archive_deleted_rows.before.date }} \
--before "{{ .Values.conf.archive_deleted_rows.before.date }}" \
{{- end }}
--verbose

View File

@ -35,4 +35,5 @@ nova:
- 0.2.12 Bootstrap flavor creation efficiencies
- 0.2.13 Add missing 'runlock' hostMount when enable_scsi
- 0.2.14 Use helm.sh/hook annotations for jobs
- 0.2.15 Fix archive-deleted-rows for enabling date command as value for before option
...