Provided better error for unit hosting on state server.
Provided better error for unit hosting on state server.
Bug 1378792
Refactored common functionality to base struct based on review comments.
Bug 1378792
Noted tech-debt bug.
Bug 1378792
Merge pull request #913 from anastasiamac/Bug1378792-friendly-error-message

Provided better error for unit hosting on state server.

http://reviews.vapour.ws/r/174/

Added 2 tests to exercise additional paths - TestAssignStateServerNonLocalCannotHostUnits and TestAssignStateServerLocalCannotHostUnits.