Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ctmcommands/admin/createuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CreateUser(ctmcommands.cmd.CSKCommand):
Param(name='forcechange', short_name='f', long_name='forcechange',
optional=True, ptype='integer',
doc='Require user to change password. Default is "true" (1) if omitted. (Valid values: 0 or 1).',
choices=[0, 1]),
choices=[0, 1], default=1),
Param(name='status', short_name='s', long_name='status',
optional=True, ptype='string',
doc='Status of the new account. Default is "enabled" if omitted. (Valid values: enabled, disabled, locked)',
Expand Down
2 changes: 1 addition & 1 deletion ctmcommands/admin/updateuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class UpdateUser(ctmcommands.cmd.CSKCommand):
Param(name='forcechange', short_name='f', long_name='forcechange',
optional=True, ptype='integer',
doc='Require user to change password. Default is "true" (1) if omitted. (Valid values: 0 or 1).',
choices=[0, 1]),
choices=[0, 1], default=1),
Param(name='status', short_name='s', long_name='status',
optional=True, ptype='string',
doc='Status of the new account. Default is "enabled" if omitted. (Valid values: enabled, disabled, locked)',
Expand Down
2 changes: 1 addition & 1 deletion ctmcommands/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def call_api(self, method, parameters=[], data={}, verb="GET", content_type=None
args = data
argstr = ""
for param in parameters:
if getattr(self, param, None):
if getattr(self, param, None) is not None:
args[param] = getattr(self, param)

# if post then args are a dict, if get args are qs
Expand Down