Commits

Yann Malet  committed f7442b3

add a required argument type to source

  • Participants
  • Parent commits 2954345

Comments (0)

Files changed (2)

File cherokee_admin_api/admin.py

     def create_vserver(self, nick, document_root, **kwargs):
         return Admin._create_vserver(self.config, nick, document_root, **kwargs)
         
-    def create_source(self, nick, host, **kwargs):
+    def create_source(self, nick, host, type, **kwargs):
         return Admin._create_source(self.config, nick, host, **kwargs)
         
     def create_rule(self, vserver_path, **kwargs):

File tests/__init__.py

         generate_config(config_file=TMP_CHEROKEE_CONF)
         admin = Admin(config_file=TMP_CHEROKEE_CONF)
         admin.create_vserver(nick="my-vserver", document_root="/dev/null")
-        admin.create_source(nick="my-source", host="/tmp/host_socket.sock")
+        admin.create_source(nick="my-source", type="host", host="/tmp/host_socket.sock")
         rule_dict = {
             "disabled" : "0",
             "document_root" : "/var/www/example.com/foo",