Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c1f0d91c
Commit
c1f0d91c
authored
Sep 22, 2016
by
Madhusudan.C.S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dereference the UID pointer for a readable error message.
parent
cb44f86b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
store.go
pkg/storage/etcd3/store.go
+1
-1
No files found.
pkg/storage/etcd3/store.go
View file @
c1f0d91c
...
...
@@ -444,7 +444,7 @@ func checkPreconditions(key string, preconditions *storage.Preconditions, out ru
return
storage
.
NewInternalErrorf
(
"can't enforce preconditions %v on un-introspectable object %v, got error: %v"
,
*
preconditions
,
out
,
err
)
}
if
preconditions
.
UID
!=
nil
&&
*
preconditions
.
UID
!=
objMeta
.
UID
{
errMsg
:=
fmt
.
Sprintf
(
"Precondition failed: UID in precondition: %v, UID in object meta: %v"
,
preconditions
.
UID
,
objMeta
.
UID
)
errMsg
:=
fmt
.
Sprintf
(
"Precondition failed: UID in precondition: %v, UID in object meta: %v"
,
*
preconditions
.
UID
,
objMeta
.
UID
)
return
storage
.
NewInvalidObjError
(
key
,
errMsg
)
}
return
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment