ioggstream

heat_support_soft_anti_affinity

Aug 10th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $ grep 'anti-affinity' -C3 /usr/lib/python2.7/site-packages/heat/engine/resources/openstack/nova/server_group.py
  2. POLICIES: properties.Schema(
  3. properties.Schema.LIST,
  4. _('A list of string policies to apply. '
  5. 'Defaults to anti-affinity.'),
  6. default=['anti-affinity'],
  7. constraints=[
  8. constraints.AllowedValues(["anti-affinity", "affinity"]) <--- add here "soft-anti-affinity"
  9. ],
  10. schema=properties.Schema(
  11. properties.Schema.STRING,
Advertisement
Add Comment
Please, Sign In to add comment