~yolanda.robla/nova/precise-security

« back to all changes in this revision

Viewing changes to nova/api/openstack/compute/servers.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-04-02 11:17:33 UTC
  • mto: (79.1.1 precise-proposed)
  • mto: This revision was merged to the branch mainline in revision 73.
  • Revision ID: package-import@ubuntu.com-20120402111733-jc0lg7anbrok67q7
Tags: upstream-2012.1~rc2
ImportĀ upstreamĀ versionĀ 2012.1~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
505
505
            msg = _("Server name is an empty string")
506
506
            raise exc.HTTPBadRequest(explanation=msg)
507
507
 
 
508
        if not len(value) < 256:
 
509
            msg = _("Server name must be less than 256 characters.")
 
510
            raise exc.HTTPBadRequest(explanation=msg)
 
511
 
508
512
    def _get_injected_files(self, personality):
509
513
        """
510
514
        Create a list of injected files from the personality attribute