From 3e62aabba8ca4b1da3d8ce0e244fde5bb91ef6a7 Mon Sep 17 00:00:00 2001 From: ByronHsu Date: Tue, 16 May 2023 15:33:14 -0700 Subject: [PATCH] Improve variable names (#1642) Signed-off-by: byhsu Co-authored-by: byhsu --- flytekit/tools/repo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flytekit/tools/repo.py b/flytekit/tools/repo.py index 82d4c2c226..e55350d3ae 100644 --- a/flytekit/tools/repo.py +++ b/flytekit/tools/repo.py @@ -254,14 +254,14 @@ def register( options = Options.default_from(k8s_service_account=service_account, raw_data_prefix=raw_data_prefix) # Load all the entities - serializable_entities = load_packages_and_modules( + registrable_entities = load_packages_and_modules( serialization_settings, detected_root, list(package_or_module), options ) - if len(serializable_entities) == 0: + if len(registrable_entities) == 0: click.secho("No Flyte entities were detected. Aborting!", fg="red") return - for cp_entity in serializable_entities: + for cp_entity in registrable_entities: og_id = cp_entity.id if isinstance(cp_entity, launch_plan.LaunchPlan) else cp_entity.template.id secho(og_id, "") try: @@ -274,4 +274,4 @@ def register( secho(og_id, reason="Dry run Mode!") except RegistrationSkipped: secho(og_id, "failed") - click.secho(f"Successfully registered {len(serializable_entities)} entities", fg="green") + click.secho(f"Successfully registered {len(registrable_entities)} entities", fg="green")