Skip to content

Commit

Permalink
Correct validation for OS X Services
Browse files Browse the repository at this point in the history
OS X service names use a format of 'com.openssh.sshd' and can get
quite long.  This commit adds periods (.) into the validation check
and sets the length to be 90 characters.
  • Loading branch information
System Administrator committed Oct 27, 2011
1 parent bf1fb08 commit 3a64157
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent/service/agent/service.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ action "status", :description => "Gets the status of a service" do
:prompt => "Service Name",
:description => "The service to get the status for",
:type => :string,
:validation => '^[a-zA-Z\-_\d]+$',
:validation => '^[a-zA-Z\.\-_\d]+$',
:optional => false,
:maxlength => 30
:maxlength => 90

output "status",
:description => "The status of service",
Expand All @@ -30,9 +30,9 @@ end
:prompt => "Service Name",
:description => "The service to #{act}",
:type => :string,
:validation => '^[a-zA-Z\-_\d]+$',
:validation => '^[a-zA-Z\.\-_\d]+$',
:optional => false,
:maxlength => 30
:maxlength => 90

output "status",
:description => "The status of service after #{act}",
Expand Down

0 comments on commit 3a64157

Please sign in to comment.