
import logging

from django.utils.translation import ugettext_lazy as _
from horizon import forms

from cloudkittydashboard.api import cloudkitty as api

LOG = logging.getLogger(__name__)


class EditPriorityForm(forms.SelfHandlingForm):
    priority = forms.IntegerField(label=_("Priority"), required=True)

    def handle(self, request, data):
        ck_client = api.cloudkittyclient(request)
        return ck_client.modules.update(
            module_id=self.initial["module_id"],
            priority=data["priority"]
        )


from django.utils.translation import ugettext_lazy as _
from horizon import forms

from cloudkittydashboard.api import cloudkitty as api


class EditPriorityForm(forms.SelfHandlingForm):
    priority = forms.IntegerField(label=_("Priority"), required=True)

    def handle(self, request, data):
        ck_client = api.cloudkittyclient(request)
        return ck_client.modules.update(
            module_id=self.initial["module_id"],
            priority=data["priority"]
        )

Delete the unused LOG code
Delete the unused LOG code

Change-Id: Ief253cdd226f8c2688429b0ff00785151a99759b

- 
- import logging
  
  from django.utils.translation import ugettext_lazy as _
  from horizon import forms
  
  from cloudkittydashboard.api import cloudkitty as api
- 
- LOG = logging.getLogger(__name__)
  
  
  class EditPriorityForm(forms.SelfHandlingForm):
      priority = forms.IntegerField(label=_("Priority"), required=True)
  
      def handle(self, request, data):
          ck_client = api.cloudkittyclient(request)
          return ck_client.modules.update(
              module_id=self.initial["module_id"],
              priority=data["priority"]
          )
  
Delete the unused LOG code
## Code Before:

import logging

from django.utils.translation import ugettext_lazy as _
from horizon import forms

from cloudkittydashboard.api import cloudkitty as api

LOG = logging.getLogger(__name__)


class EditPriorityForm(forms.SelfHandlingForm):
    priority = forms.IntegerField(label=_("Priority"), required=True)

    def handle(self, request, data):
        ck_client = api.cloudkittyclient(request)
        return ck_client.modules.update(
            module_id=self.initial["module_id"],
            priority=data["priority"]
        )

## Instruction:
Delete the unused LOG code
## Code After:

from django.utils.translation import ugettext_lazy as _
from horizon import forms

from cloudkittydashboard.api import cloudkitty as api


class EditPriorityForm(forms.SelfHandlingForm):
    priority = forms.IntegerField(label=_("Priority"), required=True)

    def handle(self, request, data):
        ck_client = api.cloudkittyclient(request)
        return ck_client.modules.update(
            module_id=self.initial["module_id"],
            priority=data["priority"]
        )
