mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
system: remove (inconsistent) prefix from default snapshot names
Also want to avoid confusion about "BE" meaning business edition.
This commit is contained in:
parent
5e5cab98b4
commit
ba72ab76d3
@ -114,7 +114,7 @@ class SnapshotsController extends ApiControllerBase
|
||||
}
|
||||
}
|
||||
// new or not found
|
||||
return ['name' => 'BE' . date('YmdHis'), 'uuid' => ''];
|
||||
return ['name' => date('YmdHis'), 'uuid' => ''];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user