Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改playbook_type最大长度,当为动态主机组时inventory_groups最大长度超过10 #229

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions OpsManage/routing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python
# _#_ coding:utf-8 _*_
from websocket.consumers import webterminal
from deploy.comsumers import AnsibleModel,AnsibleScript,AnsiblePlaybook
from apply.comsumers import IpvsVipStatus
from cicd.comsumers import AppsDeploy
from deploy.consumers import AnsibleModel,AnsibleScript,AnsiblePlaybook
from apply.consumers import IpvsVipStatus
from cicd.consumers import AppsDeploy
from django.urls import path, re_path
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
Expand All @@ -20,4 +20,4 @@
re_path(r'ipvs/stats/(?P<id>[0-9]+)/(?P<group_name>.*)/', IpvsVipStatus),
]),
),
})
})
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apps/deploy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Deploy_Playbook(models.Model):
playbook_desc = models.CharField(max_length=200,verbose_name='功能描述',blank=True,null=True)
playbook_vars = models.TextField(verbose_name='模块参数',blank=True,null=True)
playbook_uuid = models.CharField(max_length=50,verbose_name='唯一id')
playbook_type = models.CharField(verbose_name='服务器选择类型',max_length=10,blank=True,null=True)
playbook_type = models.CharField(verbose_name='服务器选择类型',max_length=50,blank=True,null=True)
playbook_file = models.FileField(upload_to = './playbook/',verbose_name='剧本路径')
playbook_business = models.SmallIntegerField(verbose_name='授权业务',blank=True,null=True)
playbook_user = models.SmallIntegerField(verbose_name='授权用户',blank=True,null=True,)
Expand Down Expand Up @@ -226,4 +226,4 @@ class Meta:
db_table = 'opsmanage_deploy_callback_playbook_result'
default_permissions = ()
verbose_name = '应用部署管理'
verbose_name_plural = '部署剧本操作记录详情表'
verbose_name_plural = '部署剧本操作记录详情表'