diff --git a/features/steps/misc.py b/features/steps/misc.py index 1c46dbf48a..983a250206 100644 --- a/features/steps/misc.py +++ b/features/steps/misc.py @@ -27,7 +27,7 @@ @when("I append the following on uaclient config") def when_i_append_to_uaclient_config(context): - cmd = "printf '{}\n' > /tmp/uaclient.conf".format(context.text) + cmd = "printf '\n{}\n' > /tmp/uaclient.conf".format(context.text) cmd = 'sh -c "{}"'.format(cmd) when_i_run_command(context, cmd, "as non-root")