summaryrefslogtreecommitdiff
path: root/ironic_python_agent/cmd
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2019-06-18 18:26:13 -0700
committerJulia Kreger <juliaashleykreger@gmail.com>2019-07-08 07:43:40 -0700
commit696606f6826394a32e9d09647f2ab1a8653bf8cb (patch)
treeaec4bbf834d293995503c7f8487b67fa64632efb /ironic_python_agent/cmd
parent94048fe97e93af3ad6902c3c1aa4ec5d92b41747 (diff)
downloadironic-python-agent-696606f6826394a32e9d09647f2ab1a8653bf8cb.tar.gz
manual introspection trigger command
Change-Id: I64e66682c1e54f6edc260a22f46f5f6df8e85af1 Story: 2005896 Task: 33756
Diffstat (limited to 'ironic_python_agent/cmd')
-rw-r--r--ironic_python_agent/cmd/inspect.py30
1 files changed, 30 insertions, 0 deletions
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()