From 631e5977e2e146f2f4906652856494a5e823a04b Mon Sep 17 00:00:00 2001
From: Jason DeTiberus <jdetiber@redhat.com>
Date: Sun, 10 Jan 2016 01:38:59 -0500
Subject: Remove camel case for bin/cluster addNodes

---
 bin/cluster                                   |  8 +++---
 playbooks/aws/openshift-cluster/addNodes.yml  | 40 ---------------------------
 playbooks/aws/openshift-cluster/add_nodes.yml | 40 +++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 44 deletions(-)
 delete mode 100644 playbooks/aws/openshift-cluster/addNodes.yml
 create mode 100644 playbooks/aws/openshift-cluster/add_nodes.yml

diff --git a/bin/cluster b/bin/cluster
index c2765ff92..c3b101c98 100755
--- a/bin/cluster
+++ b/bin/cluster
@@ -68,7 +68,7 @@ class Cluster(object):
 
         self.action(args, inventory, cluster, playbook)
 
-    def addNodes(self, args):
+    def add_nodes(self, args):
         """
         Add nodes to an existing cluster for given provider
         :param args: command line arguments provided by user
@@ -76,7 +76,7 @@ class Cluster(object):
         cluster = {'cluster_id': args.cluster_id,
                    'deployment_type': self.get_deployment_type(args),
                   }
-        playbook = "playbooks/{0}/openshift-cluster/addNodes.yml".format(args.provider)
+        playbook = "playbooks/{0}/openshift-cluster/add_nodes.yml".format(args.provider)
         inventory = self.setup_provider(args.provider)
 
         cluster['num_nodes'] = args.nodes
@@ -321,13 +321,13 @@ if __name__ == '__main__':
     create_parser.set_defaults(func=cluster.create)
 
 
-    create_parser = action_parser.add_parser('addNodes', help='Add nodes to a cluster',
+    create_parser = action_parser.add_parser('add-nodes', help='Add nodes to a cluster',
                                              parents=[meta_parser])
     create_parser.add_argument('-n', '--nodes', default=1, type=int,
                                help='number of nodes to add to the cluster')
     create_parser.add_argument('-i', '--infra', default=1, type=int,
                                help='number of infra nodes to add to the cluster')
-    create_parser.set_defaults(func=cluster.addNodes)
+    create_parser.set_defaults(func=cluster.add_nodes)
 
 
     config_parser = action_parser.add_parser('config',
diff --git a/playbooks/aws/openshift-cluster/addNodes.yml b/playbooks/aws/openshift-cluster/addNodes.yml
deleted file mode 100644
index 3d88e6b23..000000000
--- a/playbooks/aws/openshift-cluster/addNodes.yml
+++ /dev/null
@@ -1,40 +0,0 @@
----
-- name: Launch instance(s)
-  hosts: localhost
-  connection: local
-  become: no
-  gather_facts: no
-  vars_files:
-  - vars.yml
-  - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml]
-  vars:
-    oo_extend_env: True
-  tasks:
-  - fail:
-      msg: Deployment type not supported for aws provider yet
-    when: deployment_type == 'enterprise'
-
-  - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
-    vars:
-      type: "compute"
-      count: "{{ num_nodes }}"
-  - include: tasks/launch_instances.yml
-    vars:
-      instances: "{{ node_names }}"
-      cluster: "{{ cluster_id }}"
-      type: "{{ k8s_type }}"
-      g_sub_host_type: "{{ sub_host_type }}"
-
-  - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
-    vars:
-      type: "infra"
-      count: "{{ num_infra }}"
-  - include: tasks/launch_instances.yml
-    vars:
-      instances: "{{ node_names }}"
-      cluster: "{{ cluster_id }}"
-      type: "{{ k8s_type }}"
-      g_sub_host_type: "{{ sub_host_type }}"
-
-- include: scaleup.yml
-- include: list.yml
diff --git a/playbooks/aws/openshift-cluster/add_nodes.yml b/playbooks/aws/openshift-cluster/add_nodes.yml
new file mode 100644
index 000000000..3d88e6b23
--- /dev/null
+++ b/playbooks/aws/openshift-cluster/add_nodes.yml
@@ -0,0 +1,40 @@
+---
+- name: Launch instance(s)
+  hosts: localhost
+  connection: local
+  become: no
+  gather_facts: no
+  vars_files:
+  - vars.yml
+  - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml]
+  vars:
+    oo_extend_env: True
+  tasks:
+  - fail:
+      msg: Deployment type not supported for aws provider yet
+    when: deployment_type == 'enterprise'
+
+  - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
+    vars:
+      type: "compute"
+      count: "{{ num_nodes }}"
+  - include: tasks/launch_instances.yml
+    vars:
+      instances: "{{ node_names }}"
+      cluster: "{{ cluster_id }}"
+      type: "{{ k8s_type }}"
+      g_sub_host_type: "{{ sub_host_type }}"
+
+  - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
+    vars:
+      type: "infra"
+      count: "{{ num_infra }}"
+  - include: tasks/launch_instances.yml
+    vars:
+      instances: "{{ node_names }}"
+      cluster: "{{ cluster_id }}"
+      type: "{{ k8s_type }}"
+      g_sub_host_type: "{{ sub_host_type }}"
+
+- include: scaleup.yml
+- include: list.yml
-- 
cgit v1.2.3