Revision cc7312b1

b/snf-cyclades-app/synnefo/api/management/commands/flavor-create.py
49 49
           "<ram>[,<ram>,...] " \
50 50
           "<disk>[,<disk>,...] " \
51 51
           "<disk template>[,<disk template>,...]"
52
    help = "Create one or more flavors.\n\nThe flavors that will be created are"\
53
           " those belonging to the cartesian product of the arguments"\
52
    help = "Create one or more flavors.\n\nThe flavors that will be created"\
53
           " are those belonging to the cartesian product of the arguments"
54 54

  
55 55
    def handle(self, *args, **options):
56 56
        if len(args) != 4:
......
82 82
                else:
83 83
                    self.stdout.write("Flavor '%s' already exists\n"
84 84
                                      % flavor.name)
85
                    if flavor.deleted:
86
                        msg = "Flavor '%s' is marked as deleted. Use"\
87
                        " 'snf-manage flavor-modify' to restore this flavor\n"\
88
                        % flavor.name
89
                        self.stdout.write(msg)

Also available in: Unified diff