~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/api/openstack/compute/contrib/scheduler_hints.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    @wsgi.extends
47
47
    def create(self, req, body):
48
48
        hints = self._extract_scheduler_hints(body)
49
 
        body['server']['scheduler_hints'] = hints
 
49
 
 
50
        if 'server' in body:
 
51
            body['server']['scheduler_hints'] = hints
50
52
        yield
51
53
 
52
54