Skip to content

Commit

Permalink
squash me
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Sep 30, 2024
1 parent 49d991e commit e4b9a8b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions juju/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import hashlib
import json
import logging
import warnings
from typing import Dict, List, Union
from pathlib import Path

Expand Down Expand Up @@ -36,16 +35,16 @@ def exposed(self) -> bool:
return self.safe_data["exposed"]

@property
@deprecated("Application.owner_tag is deprecated and will be removed in v4")
def owner_tag(self) -> str:
warnings.warn("Deprecated", DeprecationWarning)
return self.safe_data["owner-tag"]

@property
def life(self) -> str:
return self.safe_data["life"]

@property
@deprecated("Deprecated ---------------------")
@deprecated("Application.min_units is deprecated and will be removed in v4")
def min_units(self) -> int:
return self.safe_data["min-units"]

Expand All @@ -54,13 +53,13 @@ def constraints(self) -> Dict[str, Union[str, int, bool]]:
return self.safe_data["constraints"]

@property
@deprecated("Application.subordinate is deprecated and will be removed in v4")
def subordinate(self) -> bool:
warnings.warn("Deprecated", DeprecationWarning)
return self.safe_data["subordinate"]

@property
@deprecated("Application.workload_version is deprecated and will be removed in v4, use Unit.workload_version instead.")
def workload_version(self) -> str:
warnings.warn("Deprecated, use Unit.workload_version instead", DeprecationWarning)
return self.safe_data["workload-version"]

@property
Expand Down

0 comments on commit e4b9a8b

Please sign in to comment.