Commit 701678c9 changes print statements to print functions with end=' '.

As the printed strings contain newlines, this causes a space to be written
as the first character of the following line causing them to be indented.

An example config that is broken. Here disabling modules indents all the
other lines of cloud.cfg except the first one causing the username name
setting to fail as it expects indenting to be certain number of spaces.

plugins:
  cloud_init:
    metadata_sources: Ec2
    username: admin
    disable_modules:
      - locale
      - mounts

This commit removes the spaces by specifying end=''.
This commit is contained in:
Veli-Matti Lintu 2018-06-13 13:07:14 +03:00
parent 2c02e6875a
commit 68d7ddb307
3 changed files with 4 additions and 4 deletions