summaryrefslogtreecommitdiff
path: root/cloudinit/transforms/cc_timezone.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/transforms/cc_timezone.py')
-rw-r--r--cloudinit/transforms/cc_timezone.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cloudinit/transforms/cc_timezone.py b/cloudinit/transforms/cc_timezone.py
index 02cbf2dc..747c436c 100644
--- a/cloudinit/transforms/cc_timezone.py
+++ b/cloudinit/transforms/cc_timezone.py
@@ -18,20 +18,22 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from cloudinit import util
+
from cloudinit.settings import PER_INSTANCE
frequency = PER_INSTANCE
-def handle(_name, cfg, cloud, log, args):
+def handle(name, cfg, cloud, log, args):
if len(args) != 0:
timezone = args[0]
else:
timezone = util.get_cfg_option_str(cfg, "timezone", False)
if not timezone:
- log.debug("Skipping module named %s, no 'timezone' specified", name)
+ log.debug("Skipping transform named %s, no 'timezone' specified", name)
return
-
+
# Let the distro handle settings its timezone
cloud.distro.set_timezone(timezone)