Skip to content
Snippets Groups Projects
Commit 7625e452 authored by Olgun Cengiz's avatar Olgun Cengiz :drum:
Browse files

bugfix

parent fe9f2da2
No related branches found
No related tags found
2 merge requests!48Master,!4716 refactor deprecated functions
......@@ -46,8 +46,8 @@ func GenerateUnusedUUID(client *client.DataStorageClientImpl) (string, error) {
// check that uuid is not used
key := &api.Key{}
hasData, errorsString, err := client.GetData("keys", uuid+"/"+api.KeyType.String(api.KeyType_PRIVATE), key)
if err != nil && errorsString != "" && !hasData {
hasData, _, err := client.GetData("keys", uuid+"/"+api.KeyType.String(api.KeyType_PRIVATE), key)
if err != nil || !hasData {
return uuid, nil
}
if count >= 10 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment