Changeset 7807


Ignore:
Timestamp:
Jul 25, 2018, 10:23:33 AM (15 months ago)
Author:
mabarracus
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-quota/trunk/fuentes/lliurex-quota.install/usr/bin/lliurex-quota

    r7806 r7807  
    109109    if args.set_quota:
    110110        user,quota,margin = args.set_quota
     111        if type(user) == type(list()):
     112            user = user[0]
     113        if type(quota) == type(list()):
     114            quota = quota[0]
     115        if type(margin) == type(list()):
     116            margin = margin[0]
    111117        if c is None:
    112118            print(qm.set_userquota(user,quota,margin))
     
    117123    if args.get_quota:
    118124        user = args.get_quota
     125        if type(user) == type(list()):
     126            user = user[0]
    119127        if c is None:
    120128            print(qm.get_userquota(user))
Note: See TracChangeset for help on using the changeset viewer.