Changeset 1254 for opsi/server
- Timestamp:
- Feb 15, 2021, 6:34:36 PM (4 years ago)
- Location:
- opsi/server/dass-opsi-tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/dass-opsi-tools.spec
r1239 r1254 1 1 # 2 # Copyright (c) 2012 dass IT GmbH, Koeln, Germany.2 # Copyright (c) 2012-2021 dass IT GmbH, Koeln, Germany. 3 3 # This file and all modifications and additions to the pristine 4 4 # package are under the same license as the package itself. … … 8 8 Name: dass-opsi-tools 9 9 URL: http://trac.dass-it.de/pub/ 10 License: GPL 10 License: GPL-2.0-or-later 11 11 Group: Productivity/Networking/Opsi 12 12 Autoreqprov: on 13 Summary: dass IT addon tools for OPSI14 Version: 1. 213 Summary: OPSI admin tools from dass IT 14 Version: 1.3 15 15 Release: 0 16 16 17 17 Requires: python-dateutil 18 Requires: python- json-rpc18 Requires: python-tinyrpc 19 19 # python-argparse is part of python >= 2.7 20 20 %if ( ( 0%{?suse_version} && 0%{?suse_version} <= 1110 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 600 ) ) … … 53 53 %defattr(-,root,root) 54 54 /usr/bin/* 55 -
opsi/server/dass-opsi-tools/usr/bin/opsiclient
r1239 r1254 8 8 9 9 __author__ = "Joerg Steffens" 10 __copyright__ = "Copyright 2012-20 18, dass IT GmbH"10 __copyright__ = "Copyright 2012-2021, dass IT GmbH" 11 11 __license__ = "GPL" 12 __version__ = "1. 2"12 __version__ = "1.3" 13 13 __email__ = "joerg.steffens@dass-it.de" 14 14 … … 30 30 import time 31 31 32 try: 33 import jsonrpc 34 except ImportError: 35 import jsonrpclib 36 32 from tinyrpc.protocols.jsonrpc import JSONRPCProtocol 33 from tinyrpc.transports.http import HttpPostClientTransport 34 from tinyrpc import RPCClient 37 35 38 36 UrlJsonRpc="https://<username>:<password>@opsi:4447/rpc" … … 89 87 self.nagios=nagios 90 88 self.urlJsonRpc=urlJsonRpc 91 if 'jsonrpc' in sys.modules: 92 self.rpc=jsonrpc.ServiceProxy(self.urlJsonRpc) 93 else: 94 self.rpc=jsonrpclib.ServerProxy(self.urlJsonRpc) 89 self.rpc = RPCClient(JSONRPCProtocol(), HttpPostClientTransport(self.urlJsonRpc, verify=False)).get_proxy() 90 95 91 self.logger.debug( "initialized: " + self.urlJsonRpc ) 96 92 self.logger.debug(dir(self.rpc))
Note:
See TracChangeset
for help on using the changeset viewer.