Skip to content

Commit

Permalink
Fixes to temporarily remove
Browse files Browse the repository at this point in the history
splunk-appinspect
  • Loading branch information
pyth0n1c committed Jul 28, 2023
1 parent 61ef92b commit f2be199
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 61 deletions.
42 changes: 0 additions & 42 deletions contentctl/actions/inspect.py

This file was deleted.

19 changes: 1 addition & 18 deletions contentctl/contentctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from contentctl.actions.new_content import NewContentInputDto, NewContent
from contentctl.actions.doc_gen import DocGenInputDto, DocGen
from contentctl.actions.initialize import Initialize, InitializeInputDto
from contentctl.actions.inspect import InspectInputDto, Inspect
from contentctl.actions.api_deploy import API_Deploy, API_DeployInputDto

from contentctl.input.director import DirectorInputDto
Expand Down Expand Up @@ -116,14 +115,6 @@ def build(args, config:Union[Config,None]=None) -> DirectorOutputDto:
return generate.execute(generate_input_dto)


def inspect(args) -> None:
config=start(args)
app_path = pathlib.Path(config.build.path_root)/f"{config.build.name}.tar.gz"
input_dto = InspectInputDto(path=app_path)
i = Inspect()
i.execute(input_dto=input_dto)


def api_deploy(args) -> None:
config = start(args)
deploy_input_dto = API_DeployInputDto(path=pathlib.Path(args.path), config=config)
Expand Down Expand Up @@ -339,15 +330,7 @@ def main():

reporting_parser.set_defaults(func=reporting)

inspect_parser.add_argument(
"-ap",
"--app_path",
required=False,
type=str,
default=None,
help="path to the Splunk app to be inspected",
)
inspect_parser.set_defaults(func=inspect)


api_deploy_parser.set_defaults(func=api_deploy)

Expand Down
1 change: 0 additions & 1 deletion contentctl/output/conf_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ def inspectApp(self)-> None:
LOG_FILE_OPTION, INCLUDED_TAGS_OPTION, EXCLUDED_TAGS_OPTION,
PRECERT_MODE, TEST_MODE)
except Exception as e:
import sys
print("******WARNING******")
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("The package splunk-appinspect was not installed due to a current issue with the library on Python3.10+. "
Expand Down

0 comments on commit f2be199

Please sign in to comment.