You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@leenaj0hn@virendra-sharma Currently we are not having validations for each parameter specified in task_freq. As per the documentation, user should provide a value from the below range as specified in the CLI doc.
Field ----> Allowed Values
Minute ----> 0-59
Hour ----> * or 0-23
Day-of-Month ----> * or 1-31
Month ----> * or 1-12
Day-of-Week ----> * or 0-6 (0 is Sunday)
We can mark this bug as a low priority and fix it in later sprint as the error message show above is valid.
Provide an incorrect 'task_freq' value eg: give mins field value > 60, and run modify schedule playbook. The below error is displayed
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"allow_remote_copy_parent": null,
"base_volume_name": null,
"expiration_hours": 0,
"expiration_time": null,
"expiration_unit": "Hours",
"new_name": null,
"new_schedule_name": "New_Ansible_schedule_01",
"priority": null,
"read_only": null,
"retention_hours": 0,
"retention_time": null,
"retention_unit": "Hours",
"rm_exp_time": null,
"schedule_name": "Ansible_schedule_01",
"snapshot_name": null,
"state": "modify_schedule",
"storage_system_ip": "192.168.67.6",
"storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"task_freq": "88 * * * *"
}
},
"msg": "Error: An invalid schedule was given: 88 is not a valid value"
The text was updated successfully, but these errors were encountered: