[pmg-devel] [PATCH pmg-api] fix typo

David Limbeck d.limbeck at proxmox.com
Tue Oct 30 10:44:29 CET 2018


Signed-off-by: David Limbeck <d.limbeck at proxmox.com>
---
 PMG/API2/Cluster.pm | 4 ++--
 PMG/CLI/pmgcm.pm    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/PMG/API2/Cluster.pm b/PMG/API2/Cluster.pm
index 40e329e..ceda100 100644
--- a/PMG/API2/Cluster.pm
+++ b/PMG/API2/Cluster.pm
@@ -346,7 +346,7 @@ __PACKAGE__->register_method({
 	my $realcmd = sub {
 	    my $cinfo = PMG::ClusterConfig->new();
 
-	    die "cluster alreayd defined\n" if scalar(keys %{$cinfo->{ids}});
+	    die "cluster already defined\n" if scalar(keys %{$cinfo->{ids}});
 
 	    my $info = PMG::Cluster::read_local_cluster_info();
 
@@ -425,7 +425,7 @@ __PACKAGE__->register_method({
 	my $realcmd = sub {
 	    my $cinfo = PMG::ClusterConfig->new();
 
-	    die "cluster alreayd defined\n" if scalar(keys %{$cinfo->{ids}});
+	    die "cluster already defined\n" if scalar(keys %{$cinfo->{ids}});
 
 	    my $setup = {
 		username => 'root at pam',
diff --git a/PMG/CLI/pmgcm.pm b/PMG/CLI/pmgcm.pm
index fb34a6c..c41c24d 100644
--- a/PMG/CLI/pmgcm.pm
+++ b/PMG/CLI/pmgcm.pm
@@ -181,7 +181,7 @@ __PACKAGE__->register_method({
 	my $code = sub {
 	    my $cinfo = PMG::ClusterConfig->new();
 
-	    die "cluster alreayd defined\n" if scalar(keys %{$cinfo->{ids}});
+	    die "cluster already defined\n" if scalar(keys %{$cinfo->{ids}});
 
 	    my $term = new Term::ReadLine ('pmgcm');
 	    my $attribs = $term->Attribs;
-- 
2.11.0




More information about the pmg-devel mailing list