Skip to content

Commit

Permalink
Updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Peterson444 committed Sep 21, 2023
1 parent 54c6673 commit 62d785f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions subiquity/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,7 @@ def select_autoinstall(self):
):
raise Exception(f"Autoinstall argument {self.opts.autoinstall} not found")

kernel_install_path = self.kernel_cmdline.get(
'subiquity.autoinstallpath', None
)
kernel_install_path = self.kernel_cmdline.get("subiquity.autoinstallpath", None)

locations = (
self.opts.autoinstall,
Expand Down
6 changes: 3 additions & 3 deletions subiquity/server/tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create(self, path, contents):

def test_autoinstall_disabled(self):
self.server.opts.autoinstall = ""
self.server.kernel_cmdline = {'subiquity.autoinstallpath': 'kernel'}
self.server.kernel_cmdline = {"subiquity.autoinstallpath": "kernel"}
self.create(root_autoinstall_path, "root")
self.create(cloud_autoinstall_path, "cloud")
self.create(iso_autoinstall_path, "iso")
Expand All @@ -65,7 +65,7 @@ def test_arg_wins(self):
arg = self.create(self.path("arg.autoinstall.yaml"), "arg")
self.server.opts.autoinstall = arg
kernel = self.create(self.path("kernel.autoinstall.yaml"), "kernel")
self.server.kernel_cmdline = {'subiquity.autoinstallpath': kernel}
self.server.kernel_cmdline = {"subiquity.autoinstallpath": kernel}
root = self.create(root_autoinstall_path, "root")
self.create(cloud_autoinstall_path, "cloud")
self.create(iso_autoinstall_path, "iso")
Expand All @@ -75,7 +75,7 @@ def test_arg_wins(self):
def test_kernel_wins(self):
self.server.opts.autoinstall = None
kernel = self.create(self.path("kernel.autoinstall.yaml"), "kernel")
self.server.kernel_cmdline = {'subiquity.autoinstallpath': kernel}
self.server.kernel_cmdline = {"subiquity.autoinstallpath": kernel}
root = self.create(root_autoinstall_path, "root")
self.create(cloud_autoinstall_path, "cloud")
self.create(iso_autoinstall_path, "iso")
Expand Down

0 comments on commit 62d785f

Please sign in to comment.