From 696606f6826394a32e9d09647f2ab1a8653bf8cb Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 18 Jun 2019 18:26:13 -0700 Subject: manual introspection trigger command Change-Id: I64e66682c1e54f6edc260a22f46f5f6df8e85af1 Story: 2005896 Task: 33756 --- ironic_python_agent/cmd/inspect.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ironic_python_agent/cmd/inspect.py (limited to 'ironic_python_agent/cmd') diff --git a/ironic_python_agent/cmd/inspect.py b/ironic_python_agent/cmd/inspect.py new file mode 100644 index 00000000..af747f7e --- /dev/null +++ b/ironic_python_agent/cmd/inspect.py @@ -0,0 +1,30 @@ +# Copyright 2013 Rackspace, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import sys + +from oslo_config import cfg +from oslo_log import log + +from ironic_python_agent import inspect as inspection + +CONF = cfg.CONF + + +def run(): + """Entrypoint for IronicPythonAgent.""" + log.register_options(CONF) + CONF(args=sys.argv[1:]) + log.setup(CONF, 'ironic-python-agent') + inspection.IronicInspection().run() -- cgit v1.2.1