Skip to content

Commit c371ea3

Browse files
committed
Add new optional attribute for Destination
This commit introduces a the new attribute `vhd_check_base_sas_only` for `Destination` which will be used to inform whether to perform a base SAS check only on VHD images or not (full SAS comparison). Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
1 parent 14ac5c4 commit c371ea3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

starmap_client/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ class Destination(StarmapBaseData["Destination"]):
184184
)
185185
"""Dictionary with custom tags to be set on cloud marketplaces resources."""
186186

187+
vhd_check_base_sas_only: Optional[bool] = field(
188+
validator=optional(instance_of(bool)), default=False
189+
)
190+
"""Whether to compare the base SAS URI by ignoring its parameters (True) or not (False).
191+
Defaults to ``False``."""
192+
187193

188194
def _to_to_dist_destination(x: Any) -> List[Destination]:
189195
return [Destination.from_json(d) for d in x] if x else []

0 commit comments

Comments
 (0)