'put container with next storage policy'

@command
def put_container(self, policy_index=None):

    if (policy_index is not None):
        policy = POLICIES.get_by_index(int(policy_index))
        if (not policy):
            raise ValueError(('Unknown    policy    with    index    %s' % policy))
    elif (not self.policy):
        policy = next(self.policies)
    else:
        policy = self.policy
    headers = {'X-Storage-Policy': policy.name}
    client.put_container(self.url, self.token, self.container_name, headers=headers)
