fix a bug

This commit is contained in:
meejah 2018-11-28 01:06:58 -07:00
parent 85142acf97
commit c27964813f

View File

@ -411,6 +411,7 @@ def _remove(gridoptions, options):
"No storage-server called '{}' exists".format(options['name'])
)
cert_count = 0
if fp is not None:
while fp.child('{}.cert.{}'.format(options['name'], cert_count)).exists():
fp.child('{}.cert.{}'.format(options['name'], cert_count)).remove()
cert_count += 1