security: Update go-uuid and mholt/archiver to recommended version (#2216)
* security: Update go-uuid to recommended version * security: Update mholt/archiver dep to recommended version Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -56,7 +56,11 @@ func (opts *CreateSubCommand) do(input cli.Input) error {
|
||||
func (opts *CreateSubCommand) complete(input cli.Input) error {
|
||||
name := input.String(flagkey.TtName)
|
||||
if len(name) == 0 {
|
||||
name = uuid.NewV4().String()
|
||||
id, err := uuid.NewV4()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
name = id.String()
|
||||
}
|
||||
|
||||
fnName := input.String(flagkey.TtFnName)
|
||||
|
||||
Reference in New Issue
Block a user