mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
The pwd & grp modules are only available for unix
This commit is contained in:
parent
cf0f96567a
commit
f9e9e32eaf
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue