mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-24 09:38:45 +02:00
integration: update DeleteAuthKey to use ID
This commit is contained in:
committed by
Kristoffer Dalby
parent
1325fd8b27
commit
db6882b5f5
@@ -1162,18 +1162,16 @@ func (t *HeadscaleInContainer) CreateAuthKeyWithTags(
|
||||
})
|
||||
}
|
||||
|
||||
// DeleteAuthKey deletes an "authorisation key" for a User.
|
||||
// DeleteAuthKey deletes an "authorisation key" by ID.
|
||||
func (t *HeadscaleInContainer) DeleteAuthKey(
|
||||
user uint64,
|
||||
key string,
|
||||
id uint64,
|
||||
) error {
|
||||
command := []string{
|
||||
"headscale",
|
||||
"--user",
|
||||
strconv.FormatUint(user, 10),
|
||||
"preauthkeys",
|
||||
"delete",
|
||||
key,
|
||||
"--id",
|
||||
strconv.FormatUint(id, 10),
|
||||
"--output",
|
||||
"json",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user