Revision 46c7945b

b/snf-pithos-app/pithos/api/management/commands/pithos-export-quota.py
47 47
table['policy'] = backend.node.policy
48 48
conn = backend.node.conn
49 49

  
50

  
50 51
class Command(NoArgsCommand):
51 52
    help = "Export account quota policies"
52 53

  
......
64 65
                         table['nodes'].c.parent == 0))
65 66
        s = s.where(table['nodes'].c.node == table['policy'].c.node)
66 67
        s = s.where(table['policy'].c.key == 'quota')
67
    
68

  
68 69
        location = os.path.abspath(options['location'])
69 70
        try:
70 71
            f = open(location, 'w')

Also available in: Unified diff