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
Describe the bug
When creating an new assignment, it allows you to create it with a start date that is after the end date. Implement a check to make sure the start date is before the start date / time .
Try to use mod-cloud after its created:
-=>>quads-cli --mod-schedule --host $host --schedule-id 5 --schedule-start "2024-07-02 11:20 22:00" --schedule-end "2024-07-21 22:00"
list indices must be integers or slices, not str
Traceback (most recent call last):
File "/opt/quads/bin/quads-cli", line 78, in
exit_code = main(_logger=logger)
^^^^^^^^^^^^^^^^^^^^
File "/opt/quads/bin/quads-cli", line 68, in main
return qcli.run(
^^^^^^^^^
File "/opt/quads/quads/cli/cli.py", line 78, in run
return action_meth()
^^^^^^^^^^^^^
File "/opt/quads/quads/cli/cli.py", line 1330, in action_modschedule
self.logger.info(self.quads.insert_schedule(data)["result"])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
Expected behavior
A warning or error that displays not letting them set a start date if it is after the end date.
The text was updated successfully, but these errors were encountered:
This does not happen in 2.0:
quads --add-schedule --host $host1 --schedule-start "2024-07-20 16:00"
--schedule-end "2024-07-14 22:00" --schedule-cloud cloud02
Invalid date range for start or end, start must be before end
~ Thanks,
Chris
rpm -qa | grep quads
and/orquads --version
): quads-1.1.8-20240130.noarchDescribe the bug
When creating an new assignment, it allows you to create it with a start date that is after the end date. Implement a check to make sure the start date is before the start date / time .
To Reproduce
Steps to reproduce the behavior:
quads-cli --host-list /root/utility/tickets/$ticket --add-schedule --schedule-start "2024-07-30 22:00" --schedule-end "2024-07-14 22:00" --schedule-cloud $cloud
-=>>quads-cli --mod-schedule --host $host --schedule-id 5 --schedule-start "2024-07-02 11:20 22:00" --schedule-end "2024-07-21 22:00"
list indices must be integers or slices, not str
Traceback (most recent call last):
File "/opt/quads/bin/quads-cli", line 78, in
exit_code = main(_logger=logger)
^^^^^^^^^^^^^^^^^^^^
File "/opt/quads/bin/quads-cli", line 68, in main
return qcli.run(
^^^^^^^^^
File "/opt/quads/quads/cli/cli.py", line 78, in run
return action_meth()
^^^^^^^^^^^^^
File "/opt/quads/quads/cli/cli.py", line 1330, in action_modschedule
self.logger.info(self.quads.insert_schedule(data)["result"])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
Expected behavior
A warning or error that displays not letting them set a start date if it is after the end date.
The text was updated successfully, but these errors were encountered: