Skip to content

Commit 5f012d4

Browse files
committed
chore: format
1 parent 1824c8a commit 5f012d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

morphcloud/cli.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,13 @@ def set_instance_ttl(instance_id, ttl_seconds, ttl_action):
11021102

11031103
removing = ttl_seconds == -1
11041104
spinner_text = (
1105-
f"Removing TTL for {instance_id}..." if removing else f"Setting TTL for {instance_id} to {ttl_seconds} seconds..."
1105+
f"Removing TTL for {instance_id}..."
1106+
if removing
1107+
else f"Setting TTL for {instance_id} to {ttl_seconds} seconds..."
1108+
)
1109+
success_text = (
1110+
"TTL removed successfully!" if removing else "TTL set successfully!"
11061111
)
1107-
success_text = "TTL removed successfully!" if removing else "TTL set successfully!"
11081112
with Spinner(
11091113
text=spinner_text,
11101114
success_text=success_text,

0 commit comments

Comments
 (0)