Revision 14a58548 snf-astakos-app/astakos/im/management/commands/user-set-initial-quota.py

b/snf-astakos-app/astakos/im/management/commands/user-set-initial-quota.py
47 47
AddResourceArgs = namedtuple('AddQuotaArgs', ('resource',
48 48
                                              'capacity',
49 49
                                              'quantity',
50
                                              'import_limit',
51
                                              'export_limit'))
50
                                              ))
52 51

  
53 52
class Command(BaseCommand):
54 53
    help = """Import user quota limits from file or set quota
......
57 56
    The file must contain non-empty lines, and each line must
58 57
    contain a single-space-separated list of values:
59 58

  
60
    <user> <resource name> <capacity> <quantity> <import_limit> <export_limit>
59
    <user> <resource name> <capacity> <quantity>
61 60

  
62 61
    For example to grant the following user with 10 private networks
63 62
    (independent of any he receives from projects):
64 63

  
65
    6119a50b-cbc7-42c0-bafc-4b6570e3f6ac cyclades.network.private 10 0 1000000 1000000
66

  
67
    The last two values are arbitrarily large to represent no
68
    import/export limit at all.
64
    6119a50b-cbc7-42c0-bafc-4b6570e3f6ac cyclades.network.private 10 0
69 65

  
70 66
    When setting quota from the command line, specify only capacity.
71 67
    Quantity and import/export limit will get default values. Example:
......
139 135
        args = AddResourceArgs(resource=resource,
140 136
                               capacity=capacity,
141 137
                               quantity=0,
142
                               import_limit=QH_PRACTICALLY_INFINITE,
143
                               export_limit=QH_PRACTICALLY_INFINITE,
144 138
                               )
145 139

  
146 140
        try:

Also available in: Unified diff