~tr3buchet/nova/lock

« back to all changes in this revision

Viewing changes to nova/virt/fake.py

  • Committer: Vishvananda Ishaya
  • Date: 2010-12-22 20:59:53 UTC
  • mto: This revision was merged to the branch mainline in revision 482.
  • Revision ID: vishvananda@gmail.com-20101222205953-j2j5t0qjwlcd0t2s
merge trunk and upgrade to cheetah templating

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        """
137
137
        pass
138
138
 
 
139
    def pause(self, instance, callback):
 
140
        """
 
141
        Pause the specified instance.
 
142
        """
 
143
        pass
 
144
 
 
145
    def unpause(self, instance, callback):
 
146
        """
 
147
        Unpause the specified instance.
 
148
        """
 
149
        pass
 
150
 
139
151
    def destroy(self, instance):
140
152
        """
141
153
        Destroy (shutdown and delete) the specified instance.
169
181
        knowledge of the instance
170
182
        """
171
183
        if instance_name not in self.instances:
172
 
            raise exception.NotFound("Instance %s Not Found" % instance_name)
 
184
            raise exception.NotFound(_("Instance %s Not Found")
 
185
                                     % instance_name)
173
186
        i = self.instances[instance_name]
174
187
        return {'state': i._state,
175
188
                'max_mem': 0,
249
262
 
250
263
 
251
264
class FakeInstance(object):
 
265
 
252
266
    def __init__(self):
253
267
        self._state = power_state.NOSTATE