Skip to content

Commit

Permalink
ensure create_range has user arg (closes #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt c committed Sep 27, 2024
1 parent 9bd40a3 commit a9f3fab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# pveautomate
Proxmox VE api (not fully implemented)
Proxmox VE API

## Missing a function you need?
Feel free to open a PR or Issue, but be aware API implementation has been prioritized for Alchemicode's own softwware that relies on this package.
4 changes: 1 addition & 3 deletions pveautomate/automate.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def destroy_range(self):
print("Destroying VMID " + str(vm["VMID"]))
self.destroy_vm(vm["VMID"])

def create_range(self, ids, user=None):
def create_range(self, ids, user):
"""
Create cloned VMs for a given username.
Expand All @@ -263,8 +263,6 @@ def create_range(self, ids, user=None):
user (str): The username to assign to the cloned VMs. Defaults to None.
"""
template_vm_ids = ids
if user is None:
user = input("Owner user (format 'foo@pve' or 'foo@pam'): ")
uf = user.split("@")[0]
new_instance_names = [uf + "-win1", uf + "-win2", uf + "-win3"]

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
version="0.1.9",
description="A package to automate Proxmox VE tasks",
long_description=open("README.md").read()
+ "\n# Usage Docs:\n"
+ open("DOCS.md").read(),
+ "\n\n# Usage Docs:\n"
+ open("docs.html").read(),
long_description_content_type="text/markdown",
author="Matt Compton",
author_email="matt@alchemicode.com",
Expand Down

0 comments on commit a9f3fab

Please sign in to comment.