dynamic_inventory.py fails in case of hostname+container_name length
is more than 52 symbols. While it's valid appriach for containers,
it shouldn't raise error when container is deployed on metal, since
nothing will be appended to it's current hostname.
Change-Id: Ifeed116a026042ae32985aaa7ff3f167ef3923f4