Issues while validating snapcraft.yaml: Additional properties are not allowed ('confinement', 'grade' were unexpected)

Hi,

I am trying following snapcraft.yaml :slight_smile:

name: azure-iot-gateway version: ‘2017-04-12’ summary: Azure IoT Edge for tailored IoT solutions. description: | Azure IoT Edge lets you build IoT solutions tailored to your exact scenario. Connect new or existing devices, regardless of protocol. Process the data in an on-premises gateway using the language of your choice (Java, C#, Node.js, or C), before sending it to the cloud. Deploy the solution on hardware that meets your performance needs and runs the operating system of your choice.

grade: stable confinement: strict

apps: create-from-json: command: hello-world-sample plugs: - home

parts: iot-edge: source: https://github.com/azure/iot-edge.git source-tag: ‘2017-04-12’ plugin: cmake build-packages: - build-essential - curl - libcurl4-openssl-dev - libglib2.0-dev - libssl-dev - libtool stage-packages: - libglib2.0-dev - libssl-dev - uuid-dev install: | cp samples/hello-world/hello-world-sample $SNAPCRAFT_PART_INSTALL/


when I am trying to execute the same in the classin mode I get following error

(classic)admin@GTXQB02:~/TSE$ snapcraft

Issues while validating snapcraft.yaml: Additional properties are not allowed (‘confinement’, ‘grade’ were unexpected)

I tried to drop both the lables but then “install” were unexpected error has occurred

I am not sure whats happening, same yaml was functioning earlier but on raspberry-pi.

Please help

did your pasting to the forum mess up the indendation or is the file actually that flat ? note that proper indendation is essential in yaml… (to get proper indended view in forum posts, mark the block of text you pasted and click the </> button)