Skip to content

Commit

Permalink
fixed object copy
Browse files Browse the repository at this point in the history
  • Loading branch information
netkiller committed Jun 14, 2024
1 parent 8db8953 commit 2f33396
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Deployment
$ python setup.py sdist bdist_wheel
$ twine upload dist/netkiller-devops-x.x.x.tar.gz

指定镜像

$ pip3 install netkiller-devops --upgrade -i https://pypi.org/project

Backup
------
[Data backup tools](https://github.com/netkiller/devops/blob/master/doc/backup.md).
Expand Down
6 changes: 1 addition & 5 deletions netkiller/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,8 @@ def services(self, obj):
if isinstance(obj, Services):
if obj.dockerfile:
self.dockerfile[obj.name] = obj.dockerfile
service = obj.service.copy()
# service = dict(obj.service)
# service = copy.deepcopy(obj.service)
# obj.dump()
service = copy.deepcopy(obj.service)
self.compose["services"].update(service)
# print(self.compose["services"])
return self

def networks(self, obj):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="netkiller-devops",
version="0.7.3",
version="0.7.4",
author="Neo Chen",
author_email="netkiller@msn.com",
description="DevOps of useful deployment and automation",
Expand Down

0 comments on commit 2f33396

Please sign in to comment.