system: remove (inconsistent) prefix from default snapshot names

Also want to avoid confusion about "BE" meaning business edition.
This commit is contained in:
Franco Fichtner 2024-08-29 08:45:04 +02:00
parent 5e5cab98b4
commit ba72ab76d3
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ class SnapshotsController extends ApiControllerBase
}
}
// new or not found
return ['name' => 'BE' . date('YmdHis'), 'uuid' => ''];
return ['name' => date('YmdHis'), 'uuid' => ''];
}
/**

View File

@ -58,10 +58,10 @@ if __name__ == '__main__':
elif inputargs.action == 'activate' and inputargs.beName:
cmd = ['bectl', 'activate', inputargs.beName]
elif inputargs.action == 'create':
name = inputargs.beName if inputargs.beName else "BE-{date:%Y%m%d%H%M%S}".format(date=datetime.datetime.now())
name = inputargs.beName if inputargs.beName else "{date:%Y%m%d%H%M%S}".format(date=datetime.datetime.now())
cmd = ['bectl', 'create', name]
elif inputargs.action == 'clone' and inputargs.from_source:
name = inputargs.beName if inputargs.beName else "BE-{date:%Y%m%d%H%M%S}".format(date=datetime.datetime.now())
name = inputargs.beName if inputargs.beName else "{date:%Y%m%d%H%M%S}".format(date=datetime.datetime.now())
cmd = ['bectl', 'create', '-e', inputargs.from_source, name]
elif inputargs.action == 'destroy' and inputargs.beName:
cmd = ['bectl', 'destroy', inputargs.beName]