Commit f231b899 authored by segfault's avatar segfault

Fix options being in random order

parent 4f172fd8
......@@ -4,6 +4,7 @@ import shutil
import abc
from colorlog import getLogger
from contextlib import contextmanager
from collections import OrderedDict
from onionkit import _
from onionkit.dbus.object import DBusObject
......@@ -95,7 +96,7 @@ class OnionService(DBusObject, metaclass=abc.ABCMeta):
self.state_dir = Path(TEMP_STATE_DIR, self.Name)
self.is_installed_file = Path(self.state_dir, ".is_installed")
self.options_dict = dict() # type: Dict[str, OnionServiceOption]
self.options_dict = OrderedDict() # type: Dict[str, OnionServiceOption]
self.options_file = OptionsFile()
self.private_key = HSPrivateKey()
self.data_files += [self.options_file, self.private_key]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment