mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 08:57:33 -02:30
Removed print statements left in the code.
This commit is contained in:
@@ -521,7 +521,6 @@ class JobAccess(BaseAccess):
|
|||||||
model = Job
|
model = Job
|
||||||
|
|
||||||
def can_change(self, obj, data):
|
def can_change(self, obj, data):
|
||||||
print 'CAN_CHANGE', obj, data
|
|
||||||
return self.user.is_superuser and obj.status == 'new'
|
return self.user.is_superuser and obj.status == 'new'
|
||||||
|
|
||||||
def can_start(self, obj):
|
def can_start(self, obj):
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ class HostAdminForm(forms.ModelForm):
|
|||||||
instance = super(HostAdminForm, self).save(commit=commit)
|
instance = super(HostAdminForm, self).save(commit=commit)
|
||||||
save_m2m = getattr(self, 'save_m2m', lambda: None)
|
save_m2m = getattr(self, 'save_m2m', lambda: None)
|
||||||
vdata = self.cleaned_data.get('vdata', '')
|
vdata = self.cleaned_data.get('vdata', '')
|
||||||
print 'vdata', repr(vdata)
|
|
||||||
def new_save_m2m():
|
def new_save_m2m():
|
||||||
save_m2m()
|
save_m2m()
|
||||||
if not instance.variable_data:
|
if not instance.variable_data:
|
||||||
@@ -146,7 +145,6 @@ class JobAdminForm(JobTemplateAdminForm):
|
|||||||
value = self.cleaned_data.get(field, '')
|
value = self.cleaned_data.get(field, '')
|
||||||
if value:
|
if value:
|
||||||
start_opts[field] = value
|
start_opts[field] = value
|
||||||
#print 'should_start', should_start
|
|
||||||
should_cancel = bool(self.cleaned_data.get('cancel_job', '') and
|
should_cancel = bool(self.cleaned_data.get('cancel_job', '') and
|
||||||
instance.can_cancel)
|
instance.can_cancel)
|
||||||
def new_save_m2m():
|
def new_save_m2m():
|
||||||
|
|||||||
Reference in New Issue
Block a user