The pwd & grp modules are only available for unix

This commit is contained in:
Baiju Muthukadan 2012-06-23 11:47:53 +02:00
parent cf0f96567a
commit f9e9e32eaf
2 changed files with 10 additions and 3 deletions

View file

@ -77,15 +77,19 @@ print-opts: a comma and/or space separated list of one or more of the following:
user: user name
'''
import grp
import hashlib
import logging
import os
import pwd
import re
import stat
import sys
import time
try:
import grp
import pwd
except ImportError:
pass
from salt._compat import MAX_SIZE

View file

@ -5,11 +5,14 @@ Set up the Salt integration test suite
# Import Python libs
import multiprocessing
import os
import pwd
import sys
import shutil
import signal
import subprocess
try:
import pwd
except ImportError:
pass
# Import Salt libs
import salt