Content interface `content` attribute

Zygmunt Krynicki zygmunt.krynicki at canonical.com
Fri Dec 23 18:32:05 UTC 2016


> Wiadomość napisana przez Kyle Fazzari <kyle.fazzari at canonical.com> w dniu 23.12.2016, o godz. 19:27:
> 
> Hey all.
> 
> I'm trying to figure out what the `content` attribute is for in the
> content interface. The docs say "The content attribute specified of the
> consuming snap (plug) must have a content attribute match in the
> providing snap (slot)." However, I have two snaps, provider side looking
> like this:
> 
>    slots:
>      share-foo:
>        content: foo
>        interface: content
>        read: [/]
> 
> Consumer side like this:
> 
>    plugs:
>      use-foo:
>        content: foo2
>        interface: content
>        target: /bar
> 
> These interfaces connect fine, and I can see the contents of the

This is a bug. We know about it but fixing was deferred till we can use the assertion system to control it.

Currently you can connect things manually but it will not auto-connect.


> provider within $SNAP/bar of the consumer. Running snapd v2.17.1. So
> unless I misunderstand the sentence from the docs, that doesn't seem
> accurate, and I have no idea what this attribute does.
> 
> Any ideas?

Best regards
ZK



More information about the Snapcraft mailing list