forked from cerc-io/stack-orchestrator
Fix types usage
This commit is contained in:
parent
831e4a14ff
commit
4ca96bbf8c
@ -14,6 +14,7 @@
|
||||
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
||||
|
||||
import shutil
|
||||
from typing import List
|
||||
import click
|
||||
import os
|
||||
import yaml
|
||||
@ -39,7 +40,7 @@ def _fixup_container_tag(deployment_dir: str, image: str):
|
||||
wfile.write(contents)
|
||||
|
||||
|
||||
def _fixup_url_spec(spec_file_name: str, urls: list[str]):
|
||||
def _fixup_url_spec(spec_file_name: str, urls: List[str]):
|
||||
spec_file_path = Path(spec_file_name)
|
||||
|
||||
# Load existing spec
|
||||
|
@ -20,6 +20,7 @@ import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
from typing import List
|
||||
import uuid
|
||||
import yaml
|
||||
|
||||
@ -184,7 +185,7 @@ def process_app_deployment_request( # noqa
|
||||
% (app_deployment_lrn, existing_deployment_dir)
|
||||
)
|
||||
|
||||
previous_app_deployment_lrns: list[str] = deployment_record.names
|
||||
previous_app_deployment_lrns: List[str] = deployment_record.names
|
||||
previous_fqdns = [lrn.removeprefix(f"{deployment_record_namespace}/") for lrn in previous_app_deployment_lrns]
|
||||
fqdns_to_release = list(set(previous_fqdns) - set(fqdns))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user