Commit 77963c86 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix typos in migration script

parent 86ca098d
......@@ -25,7 +25,7 @@ from synnefo.db.models import Backend, pooled_rapi_client
from synnefo.management.common import get_resource
import logging
logger = logging.getLogger("migrate_nics")
logger = logging.getLogger("migrate_disks")
handler = logging.StreamHandler()
formatter = logging.Formatter("[%(levelname)s] %(message)s")
......@@ -95,7 +95,7 @@ def upgrade_backend(backend, dry_run, ganeti_dry_run):
for job_chunk in [jobs[x:x+25] for x in range(0, len(jobs), 25)]:
gevent.joinall(jobs)
else:
logger.info("No anonymous NICs in backend '%s'. Nothing to do!",
logger.info("No anonymous disks in backend '%s'. Nothing to do!",
backend.clustername)
return
......@@ -108,7 +108,7 @@ def get_instances_with_anonymous_disks(backend):
instances = filter(lambda i:
i["name"].startswith(settings.BACKEND_PREFIX_ID),
instances)
# Filter instances with anonymous NICs
# Filter instances with anonymous disks
instances = filter(lambda i: None in i["disk.names"], instances)
# Get IDs of those instances
instances_ids = map(lambda i:
......
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 to comment