blob: 0c324fbf9b6e65800c47d99b2bf5c90e4557ed3f [file] [log] [blame]
Matteo Scandolof5e10332017-08-08 13:05:25 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Andy Bavier89a95422016-11-02 14:38:39 -040017import os
18import base64
19from django.db.models import F, Q
20from xos.config import Config
21from core.models.image import Image
22from xos.logger import observer_logger as logger
23from synchronizers.base.syncstep import *
24
25class SyncImages(SyncStep):
26 provides=[Image]
27 requested_interval=0
28 observes=Image
29
30 # We're not sync'ing sites with L-XOS
31 # Just mark it as sync'ed
32 def sync_record(self, image):
33 image.backend_status = "0 - not sync'ed by globalxos"
34 image.save()