Skip to content

Commit

Permalink
Merge pull request #47 from eliocamp/env-backend
Browse files Browse the repository at this point in the history
Adds explicit service to get_key
  • Loading branch information
khufkens committed Dec 23, 2019
2 parents dabcf2f + 0ed2fe6 commit b843d21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/wf_request.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ wf_request <- function(
}

if (missing(user)) {
user <- keyring::key_list()
user <- rbind(keyring::key_list(service = ecmwfr:::make_key_service(c("webapi"))),
keyring::key_list(service = ecmwfr:::make_key_service(c("cds"))))
serv <- make_key_service()
user <- user[substr(user$service, 1, nchar(serv)) == serv, ][["username"]]
}
Expand Down

0 comments on commit b843d21

Please sign in to comment.