IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Bladeren bron

randint fix

tags/0.92
Stanislaw Adaszewski 4 jaren geleden
bovenliggende
commit
92462c05c9
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      jail.py

+ 1
- 1
jail.py Bestand weergeven

@@ -20,7 +20,7 @@ def command_jail_run(args):
base, _ = zfs_snapshot_by_tag_or_sha256(args.image)
# root = '/'.join(base.split('/')[:-1])
for _ in range(10**6):
name = bytes([ random.randint(0, 256) for _ in range(4) ]).hex()[:7]
name = bytes([ random.randint(0, 255) for _ in range(4) ]).hex()[:7]
name = base.split('/')[0] + '/focker/jails/' + name
if not zfs_exists(name):
break


Laden…
Annuleren
Opslaan