Skip to content

Commit fa3c129

Browse files
committed
docker_id.py: remove return as string from docstring. return type is int
1 parent 0e4ed85 commit fa3c129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/docker_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def docker_vm_id(): # type: () -> Tuple[int, int]
1212
When a host is using boot2docker or docker-machine to run docker with
1313
boot2docker.iso (As on Mac OS X), the UID that mounts the shared filesystem
1414
inside the VirtualBox VM is likely different than the user's UID on the host.
15-
:return: A tuple containing numeric User ID and Group ID (as a string) of the docker account inside
15+
:return: A tuple containing numeric User ID and Group ID of the docker account inside
1616
the boot2docker VM
1717
"""
1818
if boot2docker_running():
@@ -98,7 +98,7 @@ def cmd_output_to_int(cmd): # type: (List[Text]) -> int
9898
def boot2docker_id(): # type: () -> Tuple[int, int]
9999
"""
100100
Gets the UID and GID of the docker user inside a running boot2docker vm
101-
:return: tuple (UID, GID), or (None, None) if error (e.g. boot2docker not present or stopped)
101+
:return: Tuple (UID, GID), or (None, None) if error (e.g. boot2docker not present or stopped)
102102
"""
103103
uid = cmd_output_to_int(['boot2docker', 'ssh', 'id', '-u'])
104104
gid = cmd_output_to_int(['boot2docker', 'ssh', 'id', '-g'])

0 commit comments

Comments
 (0)