def main():
global REDFISH_MOCKUP_FILES
args = parse_args()
if not os.path.exists(args.mockup_files):
print('Mockup files %s not found' % args.mockup_files)
sys.exit(1)
REDFISH_MOCKUP_FILES = os.path.realpath(args.mockup_files)
httpd = http_server.HTTPServer(('', args.port), RequestHandler)
if args.ssl_certificate and args.ssl_key:
httpd.socket = ssl.wrap_socket(
httpd.socket, keyfile=args.ssl_key,
certfile=args.ssl_certificate, server_side=True)
httpd.serve_forever()
评论列表
文章目录