Skip to content

Commit

Permalink
ensure userId, groupId are integer
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Nov 9, 2020
1 parent 389b922 commit 4ef16ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/launcher-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ launcherContainer <- function(image,
runAsUserId = NULL,
runAsGroupId = NULL)
{
if (is.numeric(runAsUserId))
runAsUserId <- as.integer(runAsUserId)

if (is.null(runAsGroupId))
runAsGroupId <- as.integer(runAsGroupId)

callLauncherFun("launcher.newContainer",
image = image,
runAsUserId = runAsUserId,
Expand Down

0 comments on commit 4ef16ec

Please sign in to comment.