Merge pull request #469 from Snorch/systemd-check-property-defaultdependencies

systemd: properly check DefaultDependencies is read only
This commit is contained in:
Alexander Morozov 2015-03-23 10:43:31 -07:00
commit 5c6332687d
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func UseSystemd() bool {
ddf := newProp("DefaultDependencies", false)
if _, err := theConn.StartTransientUnit("docker-systemd-test-default-dependencies.scope", "replace", ddf); err != nil {
if dbusError, ok := err.(dbus.Error); ok {
if dbusError.Name == "org.freedesktop.DBus.Error.PropertyReadOnly" {
if strings.Contains(dbusError.Name, "org.freedesktop.DBus.Error.PropertyReadOnly") {
hasTransientDefaultDependencies = false
}
}