Closed jodh-intel closed 7 years ago
@jodh-intel thanks for this PR, we needed this factorization to be done at some point :)
lgtm
I think this PR is going to need a manual merge due to coveralls being stuck (report is https://coveralls.io/jobs/31188810).
Introduce some private functions to allow RunPod() to behave exactly as if CreatePod() + StartPod() had been called instead. Removing the duplicated code ensures the behaviour between the two methods for creating and starting a pod is consistent.
Note that this change modifies the RunPod() behaviour very slightly - the locking is now handled later, as was previously being done by CreatePod() + StartPod().
Fixes #485.
Signed-off-by: James O. D. Hunt james.o.hunt@intel.com