Skip to content

Commit 385ca19

Browse files
rename OscapScan to OscapAtomicScan to avoid confusion
1 parent dafa362 commit 385ca19

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

utils/oscap-docker.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
''' oscap docker command '''
2121

2222
import argparse
23-
from oscap_docker_python.oscap_docker_util import OscapScan
23+
from oscap_docker_python.oscap_docker_util import OscapAtomicScan,\
24+
OscapDockerScan, isAtomicLoaded
2425
import docker
2526
import sys
2627
from requests import exceptions

utils/oscap_docker_python/oscap_docker_util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def __init__(self, message):
8787
" (requires root privileges)")
8888

8989

90+
def isAtomicLoaded():
91+
return atomic_loaded
92+
93+
9094
class OscapError(Exception):
9195
''' oscap Error'''
9296
pass
@@ -230,7 +234,7 @@ def mount_image_filesystem():
230234
_tmp_mnt_dir = DM.mount(image)
231235

232236

233-
class OscapScan(object):
237+
class OscapAtomicScan(object):
234238
def __init__(self, tmp_dir=tempfile.gettempdir(), mnt_dir=None,
235239
hours_old=2, oscap_binary=''):
236240
self.tmp_dir = tmp_dir

0 commit comments

Comments
 (0)