Simplify devstack script for generating cyborg.conf
Simplify devstack script for generating cyborg.conf

1. Put the same code in one function.

Change-Id: I1d543e224fd7c5629caf489e2eb28dfdd9c71442

openstack/nomad