Commit 541a0e59 by Szabolcs Gelencser

Fix Azure template imports.

parent 7e3d9ab5
......@@ -193,13 +193,13 @@ def update_azure_builtin_templates():
current_version_ids.append(current_version.azure_id)
# delete old publishers, offers, skus, and versions
AzureBuiltinPublisher.objects.filter(
AzureBuiltinPublisher.objects.exclude(
azure_id__in=current_publisher_ids).delete()
AzureBuiltinOffer.objects.filter(
AzureBuiltinOffer.objects.exclude(
azure_id__in=current_offer_ids).delete()
AzureBuiltinSKU.objects.filter(
AzureBuiltinSKU.objects.exclude(
azure_id__in=current_sku_ids).delete()
AzureBuiltinVersion.objects.filter(
AzureBuiltinVersion.objects.exclude(
azure_id__in=current_version_ids).delete()
logger.info("refreshed azure built-in template imports")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment