Skip to content

Commit

Permalink
refactor(job_attachments)!: rename OperatingSystemFamily to StoragePr…
Browse files Browse the repository at this point in the history
…ofileOperatingSystemFamily (#192)

Signed-off-by: Gahyun Suh <132245153+gahyusuh@users.noreply.github.com>
  • Loading branch information
gahyusuh authored Feb 29, 2024
1 parent 21b7e8b commit 7743ad8
Show file tree
Hide file tree
Showing 4 changed files with 1,981 additions and 624 deletions.
4 changes: 2 additions & 2 deletions src/deadline/job_attachments/_aws/deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Job,
JobAttachmentS3Settings,
ManifestProperties,
OperatingSystemFamily,
StorageProfileOperatingSystemFamily,
PathFormat,
Queue,
StorageProfile,
Expand Down Expand Up @@ -131,7 +131,7 @@ def get_storage_profile_for_queue(
return StorageProfile(
storageProfileId=response["storageProfileId"],
displayName=response["displayName"],
osFamily=OperatingSystemFamily(response["osFamily"]),
osFamily=StorageProfileOperatingSystemFamily(response["osFamily"]),
fileSystemLocations=[
FileSystemLocation(
name=file_system_location["name"],
Expand Down
4 changes: 2 additions & 2 deletions src/deadline/job_attachments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class OutputFile:
in_s3: bool # If the file already exists in the CAS


class OperatingSystemFamily(str, Enum):
class StorageProfileOperatingSystemFamily(str, Enum):
WINDOWS = "windows"
LINUX = "linux"
MACOS = "macos"
Expand Down Expand Up @@ -294,7 +294,7 @@ class StorageProfile:

storageProfileId: str
displayName: str
osFamily: OperatingSystemFamily
osFamily: StorageProfileOperatingSystemFamily
fileSystemLocations: List[FileSystemLocation] = field(default_factory=list) # type: ignore


Expand Down
Loading

0 comments on commit 7743ad8

Please sign in to comment.