Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Commit

Permalink
Fixing missing parameters error introduced by password test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Vanstone committed Aug 2, 2017
1 parent 9f5734a commit 7f9bf37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/servicenow/ServiceNowClient.py
Expand Up @@ -18,7 +18,7 @@
RECORD_CREATED_STATUS = 201

class ServiceNowClient(object):
def __init__(self, httpConnection, username, password):
def __init__(self, httpConnection, username=None, password=None):
self.headers = {}
self.accessToken = None
self.refreshToken = None
Expand All @@ -32,7 +32,7 @@ def __init__(self, httpConnection, username, password):
self.sysparms = 'sysparm_display_value=%s&sysparm_input_display_value=%s' % (self.httpConnection['sysparmDisplayValue'], self.httpConnection['sysparmInputDisplayValue'])

@staticmethod
def create_client(httpConnection, username, password):
def create_client(httpConnection, username=None, password=None):
return ServiceNowClient(httpConnection, username, password)

def get_change_request_states(self):
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/synthetic.xml
Expand Up @@ -26,7 +26,7 @@

<property name="servicenowServer" category="input" label="Server" referenced-type="servicenow.Server"
kind="ci"/>
<property name="username" category="input" label="username" required="false"/>
<property name="username" category="input" required="false"/>
<property name="password" password="true" category="input" required="false"/>

<!-- <property name="authToken" category="input" label="Auth Token" required="false" description="Overrides the auth token used to connect to the server" /> -->
Expand Down

0 comments on commit 7f9bf37

Please sign in to comment.