Make sure agent config gets done on api hosts

Change-Id: I0bfec0ba88c81f458052dfa2d5c70127c6ba6cea