Skip to content

Commit 0dcb7b2

Browse files
committed
Fix issues
1 parent ee23fc3 commit 0dcb7b2

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,4 @@ setup.cfg
349349
setup.py
350350
test-requirements.txt
351351
test/__init__.py
352-
test/test_auth_organizations_config.py
353-
test/test_device_last_seen.py
354-
test/test_device_resume_request.py
355-
test/test_device_resume_response.py
356-
test/test_deviceactions_api.py
357-
test/test_internal_task_permanently_failed_details.py
358352
tox.ini

flightctl/models/image_volume_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ImageVolumeSource(BaseModel):
2929
Describes the source of an OCI-compliant image or artifact.
3030
""" # noqa: E501
3131
reference: StrictStr = Field(description="Reference to an OCI-compliant image or artifact in a registry. This may be a container image or another type of OCI artifact, as long as it conforms to the OCI image specification.")
32-
pull_policy: Optional[ImagePullPolicy] = Field(default=ImagePullPolicy.NUMBER_PullIfNotPresent, alias="pullPolicy")
32+
pull_policy: Optional[ImagePullPolicy] = Field(default=ImagePullPolicy.IFNOTPRESENT, alias="pullPolicy")
3333
__properties: ClassVar[List[str]] = ["reference", "pullPolicy"]
3434

3535
model_config = ConfigDict(
@@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8484

8585
_obj = cls.model_validate({
8686
"reference": obj.get("reference"),
87-
"pullPolicy": obj.get("pullPolicy") if obj.get("pullPolicy") is not None else ImagePullPolicy.NUMBER_PullIfNotPresent
87+
"pullPolicy": obj.get("pullPolicy") if obj.get("pullPolicy") is not None else ImagePullPolicy.IFNOTPRESENT
8888
})
8989
return _obj
9090

0 commit comments

Comments
 (0)