Skip to content

Commit

Permalink
Improve variable names (#1642)
Browse files Browse the repository at this point in the history
Signed-off-by: byhsu <[email protected]>
Co-authored-by: byhsu <[email protected]>
  • Loading branch information
2 people authored and eapolinario committed Jul 10, 2023
1 parent 88afc39 commit 4e0fa7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flytekit/tools/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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")

0 comments on commit 4e0fa7d

Please sign in to comment.