mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
Added new field action to gpt/drives.py
This commit is contained in:
parent
fe4a5fa78c
commit
5fdefaecc0
@ -67,6 +67,7 @@ def read_drives(drives_file):
|
||||
drive_obj.set_pass(decrypt_pass(props.get('cpassword')))
|
||||
drive_obj.set_dir(props.get('letter'))
|
||||
drive_obj.set_path(props.get('path'))
|
||||
drive_obj.set_action(props.get('action'))
|
||||
|
||||
drives.append(drive_obj)
|
||||
|
||||
@ -93,6 +94,7 @@ class drivemap:
|
||||
self.password = None
|
||||
self.dir = None
|
||||
self.path = None
|
||||
self.action = None
|
||||
|
||||
def set_login(self, username):
|
||||
self.login = username
|
||||
@ -110,6 +112,9 @@ class drivemap:
|
||||
def set_path(self, path):
|
||||
self.path = path
|
||||
|
||||
def set_action(self, action):
|
||||
self.action = action
|
||||
|
||||
def to_json(self):
|
||||
drive = dict()
|
||||
drive['login'] = self.login
|
||||
|
Loading…
x
Reference in New Issue
Block a user