Coverage for watcher/cmd/sync.py: 0%
13 statements
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-17 12:22 +0000
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-17 12:22 +0000
1# -*- encoding: utf-8 -*-
2#
3# Copyright (c) 2016 Intel
4#
5# Authors: Tomasz Kaczynski <tomasz.kaczynski@intel.com>
6#
7# Licensed under the Apache License, Version 2.0 (the "License"); you may
8# not use this file except in compliance with the License. You may obtain
9# a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16# License for the specific language governing permissions and limitations
17# under the License.
19"""Script for the sync tool."""
21import sys
23from oslo_log import log
25from watcher.common import service
26from watcher import conf
27from watcher.decision_engine import sync
29LOG = log.getLogger(__name__)
30CONF = conf.CONF
33def main():
34 LOG.info('Watcher sync started.')
36 service.prepare_service(sys.argv, CONF)
37 syncer = sync.Syncer()
38 syncer.sync()
40 LOG.info('Watcher sync finished.')