← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~lgp171188/lpci:fix-warning-yaml-formatting into lpci:main

 

Guruprasad has proposed merging ~lgp171188/lpci:fix-warning-yaml-formatting into lpci:main.

Commit message:
Fix the yaml formatting in the snap deprecated format warning

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~lgp171188/lpci/+git/lpcraft/+merge/441437
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/lpci:fix-warning-yaml-formatting into lpci:main.
diff --git a/lpci/config.py b/lpci/config.py
index c402afb..54763d5 100644
--- a/lpci/config.py
+++ b/lpci/config.py
@@ -309,8 +309,8 @@ class Job(ModelConfigDefaults):
                     f"Warning: You configured snap `{value}` but "
                     + "you used a deprecated format. "
                     + "\nPlease use "
-                    + f"\n...\n-name: {value}\n"
-                    + " classic: True\n...\n"
+                    + f"\n...\n- name: {value}\n"
+                    + "  classic: True\n...\n"
                     + "instead.\n"
                     + "Please refer to the documentation for an "
                     + "overview of supported formats.",

Follow ups