cloud-init/cloudinit/__init__.py
Scott Moser 780cf2d7ca remove warning message to console on empty user-data
Previously, if the user did not provide any user-data, then
a warning would be emitted like:
  2012-06-28 17:10:24,751 - __init__.py[WARNING]: Unhandled
     non-multipart userdata ''

This just avoids the warning if there was no userdata.
2012-06-28 13:10:56 -04:00

22 lines
925 B
Python

# vi: ts=4 expandtab
#
# Copyright (C) 2012 Canonical Ltd.
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P.
# Copyright (C) 2012 Yahoo! Inc.
#
# Author: Scott Moser <scott.moser@canonical.com>
# Author: Juerg Haefliger <juerg.haefliger@hp.com>
# Author: Joshua Harlow <harlowja@yahoo-inc.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.