def clean_hostname(hostname):
    if hostname:
        return hostname.replace('.local', '')
Creates or replaces a storage object in the specified container.
dataset/ETHPy150Open pascalw/Airplayer/airplayer/utils.py/clean_hostname--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/ContainerManager.create_object