Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update helper.py #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions calm-integrations/calm-dr-vm-tracking-scripts/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def change_project(application_name, new_project_name):
log.info("Now moving '{}' app's VM to new project '{}'".format(app_name, new_project_name))

if app.app_blueprint_config.source_marketplace_name:
log.info("Moving Markeplace BP of application '{}' to '{}' project".format(app_name, new_project_name))
log.info("Moving Marketplace BP of application '{}' to '{}' project".format(app_name, new_project_name))
handle_entity_project_change("blueprint", str(app.app_blueprint_config.uuid), tenant_uuid, new_project_name, new_project_uuid)
log.info("Successfully moved Markeplace BP of application '{}' to '{}' project".format(app_name, new_project_name))
log.info("Successfully moved Marketplace BP of application '{}' to '{}' project".format(app_name, new_project_name))

if not pc_account_uuid_object_map:
log.info("There are no AHV vm's in the app, hence no vm belonging to this app needs any change")
Expand Down Expand Up @@ -334,4 +334,4 @@ def get_or_create_category(name, value, tenant_uuid):
category_obj.tenant_uuid = tenant_uuid
category_obj.initialize(name, value, "Created by CALM", None, True)
category_obj.save()
return category_obj
return category_obj