Skip to content

Commit 3163770

Browse files
committed
ci: fix syntax
1 parent a800f75 commit 3163770

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/models/cloudharness_model/models/backup_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def schedule(self, schedule: str):
196196
:type schedule: str
197197
"""
198198
if schedule is not None and not re.search(r'(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})', schedule): # noqa: E501
199-
raise ValueError("Invalid value for `schedule`, must be a follow pattern or equal to `/(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})/`") # noqa: E501
199+
raise ValueError(r"Invalid value for `schedule`, must be a follow pattern or equal to `/(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})/`") # noqa: E501
200200

201201
self._schedule = schedule
202202

libraries/models/cloudharness_model/models/deployment_auto_artifact_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def image(self, image: str):
190190
:type image: str
191191
"""
192192
if image is not None and not re.search(r'(?:[a-z]+\/)?([a-z]+)(?::[0-9]+)?', image): # noqa: E501
193-
raise ValueError("Invalid value for `image`, must be a follow pattern or equal to `/(?:[a-z]+\/)?([a-z]+)(?::[0-9]+)?/`") # noqa: E501
193+
raise ValueError(r"Invalid value for `image`, must be a follow pattern or equal to `/(?:[a-z]+\/)?([a-z]+)(?::[0-9]+)?/`") # noqa: E501
194194

195195
self._image = image
196196

libraries/models/cloudharness_model/models/deployment_auto_artifact_config_all_of.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def image(self, image):
135135
:type image: str
136136
"""
137137
if image is not None and not re.search(r'(?:[a-z]+\/)?([a-z]+)(?::[0-9]+)?', image): # noqa: E501
138-
raise ValueError("Invalid value for `image`, must be a follow pattern or equal to `/(?:[a-z]+\/)?([a-z]+)(?::[0-9]+)?/`") # noqa: E501
138+
raise ValueError(r"Invalid value for `image`, must be a follow pattern or equal to `/(?:[a-z]+\/)?([a-z]+)(?::[0-9]+)?/`") # noqa: E501
139139

140140
self._image = image
141141

0 commit comments

Comments
 (0)