'return whether a volume mount exists'

def exists_volume_mount(self, volume_mount):

    exist_volume_mounts = self.get_volume_mounts()
    if (not exist_volume_mounts):
        return False
    volume_mount_found = False
    for exist_volume_mount in exist_volume_mounts:
        if (exist_volume_mount['name'] == volume_mount['name']):
            volume_mount_found = True
            break
    return volume_mount_found
