glance-scrubber revision 4623
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync#!/usr/bin/python2.7
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync#
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# Licensed under the Apache License, Version 2.0 (the "License"); you may
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# not use this file except in compliance with the License. You may obtain
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync# a copy of the License at
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync#
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# http://www.apache.org/licenses/LICENSE-2.0
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync#
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# Unless required by applicable law or agreed to in writing, software
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# License for the specific language governing permissions and limitations
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync# under the License.
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsyncimport os
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsyncimport smf_include
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsyncdef start():
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync smf_include.smf_subprocess("/usr/lib/glance/glance-scrubber")
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsyncif __name__ == "__main__":
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync os.putenv("LC_ALL", "C")
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync smf_include.smf_main()
3cc33d1e7558a0f4a04b59bfe914a24d0b9a2329vboxsync