~morita-kazutaka/nova/clone-volume

« back to all changes in this revision

Viewing changes to nova/api/ec2/cloud.py

  • Committer: MORITA Kazutaka
  • Date: 2011-05-27 05:13:17 UTC
  • Revision ID: morita.kazutaka@gmail.com-20110527051317-ne6psr2clkbawl03
Fix pep8 errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
666
666
        return v
667
667
 
668
668
    def create_volume(self, context, **kwargs):
669
 
        size = kwargs.get('size');
 
669
        size = kwargs.get('size')
670
670
        if kwargs.get('snapshot_id') != None:
671
671
            snapshot_id = ec2utils.ec2_id_to_id(kwargs['snapshot_id'])
672
 
            LOG.audit(_("Create volume from snapshot %s"), snapshot_id, context=context)
 
672
            LOG.audit(_("Create volume from snapshot %s"), snapshot_id,
 
673
                      context=context)
673
674
        else:
674
675
            snapshot_id = None
675
676
            LOG.audit(_("Create volume of %s GB"), size, context=context)
676
 
            
 
677
 
677
678
        volume = self.volume_api.create(
678
679
                context,
679
680
                size=size,