Skip to content
Snippets Groups Projects
Commit f1eb20d5 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Import module rather than funciton in the set_configs.py file"

parents 604e1d5e 2eaf65a1
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ import contextlib
import json
import logging
import os
from pwd import getpwnam
import pwd
import shutil
import sys
......@@ -182,7 +182,7 @@ def set_permissions(data):
# Check for user and group id in the environment.
try:
user = getpwnam(owner)
user = pwd.getpwnam(owner)
except KeyError:
LOG.error("The specified user does not exist: %s", owner)
sys.exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment