Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !127 opened Jul 22, 2014 by Őry Máté@orymate 
  • Report abuse
Report abuse

Nostate Operation

  • Discussion 6
  • Commits 13
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 22, 2014
    circle/vm/models/instance.py
    442 443 self.time_of_suspend, self.time_of_delete = self.get_renew_times()
    443 444 super(Instance, self).clean(*args, **kwargs)
    444 445  
    445 def manual_state_change(self, new_state="NOSTATE", reason=None, user=None):
    446 def manual_state_change(self, activity, new_state="NOSTATE",
    • Őry Máté @orymate commented Jul 22, 2014
      Owner

      remove this

      remove this
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 22, 2014
    circle/vm/operations.py
    638 638 register_operation(RenewOperation)
    639 639  
    640 640  
    641 class ChangeStateOperation(InstanceOperation):
    642 activity_code_suffix = 'change_state'
    643 id = 'change_state'
    644 name = _("change state")
    • Őry Máté @orymate commented Jul 22, 2014
      Owner

      "emergency state change"?

      "emergency state change"?
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 22, 2014
    circle/vm/operations.py
    638 638 register_operation(RenewOperation)
    639 639  
    640 640  
    641 class ChangeStateOperation(InstanceOperation):
    642 activity_code_suffix = 'change_state'
    643 id = 'change_state'
    644 name = _("change state")
    645 description = _("Change the virtual machine state to NOSTATE")
    646 acl_level = "owner"
    647 required_perms = ('vm.change_state', )
    648
    649 def _operation(self, user, activity, new_state="NOSTATE",
    650 reason=None, lease=None):
    • Őry Máté @orymate commented Jul 22, 2014
      Owner

      remove or handle the last two args

      remove or handle the last two args
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 22, 2014
    circle/dashboard/views.py
    514 515 def get_success_url(self):
    515 516 return self.get_object().get_absolute_url() + "#resources"
    516 517  
    518 def post(self, request, **kwargs):
    • Őry Máté @orymate commented Jul 22, 2014
      Owner

      this is for an other branch

      this is for an other branch
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 22, 2014
    circle/vm/models/instance.py
    270 270 ('create_vm', _('Can create a new VM.')),
    271 271 ('config_ports', _('Can configure port forwards.')),
    272 272 ('recover', _('Can recover a destroyed VM.')),
    273 ('change_state', _('Can change VM state to NOSTATE.')),
    • Őry Máté @orymate commented Jul 22, 2014
      Owner

      emergency

      emergency
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 22, 2014
    circle/vm/models/activity.py
    41 41  
    42 42 def __init__(self, activity, message=None):
    43 43 if message is None:
    44 message = ("Another activity is currently in progress: '%s'."
    45 % activity.activity_code)
    44 message = ("Another activity is currently in progress: '%s' "
    45 "(%s)."
    46 % (activity.activity_code, activity.pk))
    • Őry Máté @orymate commented Jul 22, 2014
      Owner

      could be a human readable exception

      could be a human readable exception
    Please register or sign in to reply
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Őry Máté
Assignee
Őry Máté @orymate
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
1
1 participant
Reference: circle/cloud!127