Import module rather than funciton in the set_configs.py file

TrivialFix

Change-Id: I352ef1176407edf093667644ce6adbd48eb63865
This commit is contained in:
Jeffrey Zhang 2016-02-25 08:18:12 +08:00
parent 3f8bc07270
commit 2eaf65a1e1

View File

@ -16,7 +16,7 @@ import contextlib
import json import json
import logging import logging
import os import os
from pwd import getpwnam import pwd
import shutil import shutil
import sys import sys
@ -182,7 +182,7 @@ def set_permissions(data):
# Check for user and group id in the environment. # Check for user and group id in the environment.
try: try:
user = getpwnam(owner) user = pwd.getpwnam(owner)
except KeyError: except KeyError:
LOG.error("The specified user does not exist: %s", owner) LOG.error("The specified user does not exist: %s", owner)
sys.exit(1) sys.exit(1)