Skip to content

Commit

Permalink
chore: release v2.4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook committed Nov 27, 2024
1 parent 9c4cc20 commit 464b9d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmdb-api/api/lib/cmdb/ipam/subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def validate_cidr(self, parent_id, cidr, _id=None):
return cidr

def _add_subnet(self, cidr, **kwargs):
kwargs[SubnetBuiltinAttributes.HOSTS_COUNT] = ipaddress.ip_network(cidr).num_addresses - 2
kwargs[SubnetBuiltinAttributes.HOSTS_COUNT] = len(list(ipaddress.ip_network(cidr).hosts()))
kwargs[SubnetBuiltinAttributes.USED_COUNT] = 0
kwargs[SubnetBuiltinAttributes.ASSIGN_COUNT] = 0
kwargs[SubnetBuiltinAttributes.FREE_COUNT] = kwargs[SubnetBuiltinAttributes.HOSTS_COUNT]
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
- redis

cmdb-api:
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-api:2.4.14
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-api:2.4.15
container_name: cmdb-api
env_file:
- .env
Expand Down Expand Up @@ -71,7 +71,7 @@ services:
flask cmdb-init-acl
flask init-import-user-from-acl
flask init-department
nohup flask cmdb-patch -v 2.4.14 &
nohup flask cmdb-patch -v 2.4.15 &
flask cmdb-counter > counter.log 2>&1
networks:
new:
Expand All @@ -84,7 +84,7 @@ services:
test: "ps aux|grep -v grep|grep -v '1 root'|grep gunicorn || exit 1"

cmdb-ui:
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-ui:2.4.14
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-ui:2.4.15
container_name: cmdb-ui
depends_on:
cmdb-api:
Expand Down

0 comments on commit 464b9d5

Please sign in to comment.