diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-03-15 14:09:07 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-03-15 14:09:07 -0400 |
| commit | 52ca81661f156122a3a5d4a438fea83e067215ac (patch) | |
| tree | 2156d53d78dceb7e342b3dd365d7ab33e1ebd5d0 /src/Propellor/Container.hs | |
| parent | 51e281911d683f833d4d71ad62f2b64a5f4a0cea (diff) | |
Property types changed to use a Maybe (Propellor Result). (API change)
* Property types changed to use a Maybe (Propellor Result). (API change)
* When Nothing needs to be done to ensure a property, propellor
will avoid displaying its description at all. The doNothing property
is an example of such a property.
This is mostly in preparation for Monoid instances for Property types, but
is's also nice that anything that uses doNothing will avoid printing out
any message at all. At least, I think it probably is. It might potentially
be confusing for something that sometimes takes an action and sometimes
resolves to doNothing and in either case has a description set to not
always show the description. If this did turn out to be confusing, the
change to doNothing could be reverted.
This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
Diffstat (limited to 'src/Propellor/Container.hs')
| -rw-r--r-- | src/Propellor/Container.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Container.hs b/src/Propellor/Container.hs index b64f5949..a805add8 100644 --- a/src/Propellor/Container.hs +++ b/src/Propellor/Container.hs @@ -58,7 +58,7 @@ propagateContainer containername c wanted prop = prop `addChildren` map convert (containerProperties c) where convert p = - let n = property (getDesc p) (getSatisfy p) :: Property UnixLike + let n = property'' (getDesc p) (getSatisfy p) :: Property UnixLike n' = n `setInfoProperty` mapInfo (forceHostContext containername) (propagatableInfo wanted (getInfo p)) |
