openshift / geard

geard is no longer maintained - see OpenShift 3 and Kubernetes
Other
405 stars 80 forks source link

The `docker inspect` test in the systemd COMMON_CONTAINER template uses wrong variable name #258

Closed wallrj closed 10 years ago

wallrj commented 10 years ago

When you restart a unit, the test for an existing -data uses the wrong variable name .ID instead of .Id resulting in this message.

Aug 19 03:12:49 localhost.localdomain sh[14566]: Reusing <no value>

See:

[vagrant@localhost ~]$ sudo gear list-units
ID      SERVER  ACTIVE  SUB     LOAD    TYPE
my-unit         active  running loaded  
[vagrant@localhost ~]$ docker inspect --format='{{.Id}}' my-unit
a8360222d9a06379180738dfbd3f39ea2b7e1566707edf413154c14d30be701c
[vagrant@localhost ~]$ docker inspect --format='{{.Id}}' my-unit-data
bed17b6bf1498ecabc305104374384706d9a9e7007314698ab11bf3744001588
[vagrant@localhost ~]$ docker inspect --format='{{.ID}}' my-unit-data
<no value>
[vagrant@localhost ~]$