Skip to content

Commit f8b9281

Browse files
committed
Disable default credentials save
1 parent d326cef commit f8b9281

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

archinstall/lib/configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ def save_user_creds(self, dest_path: Path) -> None:
105105
target.write_text(self.user_credentials_to_json())
106106
target.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
107107

108-
def save(self, dest_path: Path | None = None) -> None:
108+
def save(self, dest_path: Path | None = None, creds: bool = False) -> None:
109109
save_path = dest_path or self._default_save_path
110110

111111
if self._is_valid_path(save_path):
112112
self.save_user_config(save_path)
113-
self.save_user_creds(save_path)
113+
if creds:
114+
self.save_user_creds(save_path)
114115

115116

116117
def save_config(config: ArchConfig) -> None:

0 commit comments

Comments
 (0)