mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-11 23:03:53 +00:00
fix a bug
This commit is contained in:
parent
85142acf97
commit
c27964813f
@ -411,9 +411,10 @@ def _remove(gridoptions, options):
|
|||||||
"No storage-server called '{}' exists".format(options['name'])
|
"No storage-server called '{}' exists".format(options['name'])
|
||||||
)
|
)
|
||||||
cert_count = 0
|
cert_count = 0
|
||||||
while fp.child('{}.cert.{}'.format(options['name'], cert_count)).exists():
|
if fp is not None:
|
||||||
fp.child('{}.cert.{}'.format(options['name'], cert_count)).remove()
|
while fp.child('{}.cert.{}'.format(options['name'], cert_count)).exists():
|
||||||
cert_count += 1
|
fp.child('{}.cert.{}'.format(options['name'], cert_count)).remove()
|
||||||
|
cert_count += 1
|
||||||
|
|
||||||
_save_gridmanager_config(fp, gm)
|
_save_gridmanager_config(fp, gm)
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user