Revision a6e6fe48 snf-cyclades-app/synnefo/logic/management/commands/flavor-modify.py
b/snf-cyclades-app/synnefo/logic/management/commands/flavor-modify.py | ||
---|---|---|
1 |
# Copyright 2012 GRNET S.A. All rights reserved. |
|
1 |
# Copyright 2012-2014 GRNET S.A. All rights reserved.
|
|
2 | 2 |
# |
3 | 3 |
# Redistribution and use in source and binary forms, with or |
4 | 4 |
# without modification, are permitted provided that the following |
... | ... | |
34 | 34 |
from optparse import make_option |
35 | 35 |
|
36 | 36 |
from django.core.management.base import BaseCommand, CommandError |
37 |
from synnefo.management.common import get_flavor
|
|
37 |
from synnefo.management.common import get_resource
|
|
38 | 38 |
from snf_django.management.utils import parse_bool |
39 | 39 |
|
40 | 40 |
|
... | ... | |
67 | 67 |
if len(args) != 1: |
68 | 68 |
raise CommandError("Please provide a flavor ID") |
69 | 69 |
|
70 |
flavor = get_flavor(args[0], for_update=True)
|
|
70 |
flavor = get_resource("flavor", args[0], for_update=True)
|
|
71 | 71 |
|
72 | 72 |
deleted = options['deleted'] |
73 | 73 |
|
Also available in: Unified diff