Przeglądaj źródła

Update resource names in the docs to match naming requirements

Enis Afgan 8 lat temu
rodzic
commit
66828d1d13

+ 2 - 2
docs/getting_started.rst

@@ -121,7 +121,7 @@ a private network.
 
     net = provider.networking.networks.get('desired network ID')
     fw = provider.security.vm_firewalls.create(
-        'cloudbridge_intro', 'A VM firewall used by CloudBridge', net.id)
+        'cloudbridge-intro', 'A VM firewall used by CloudBridge', net.id)
     fw.rules.create(TrafficDirection.INBOUND, 'tcp', 22, 22, '0.0.0.0/0')
 
 Launch an instance
@@ -137,7 +137,7 @@ also add the network interface as a launch argument.
                       if t.vcpus >= 2 and t.ram >= 4],
                       key=lambda x: x.vcpus*x.ram)[0]
     inst = provider.compute.instances.create(
-        name='CloudBridge-intro', image=img, vm_type=vm_type,
+        name='cloudbridge-intro', image=img, vm_type=vm_type,
         subnet=subnet, key_pair=kp, vm_firewalls=[fw])
     # Wait until ready
     inst.wait_till_ready()  # This is a blocking call

+ 2 - 2
docs/topics/block_storage.rst

@@ -14,7 +14,7 @@ performed via the :class:`.VolumeService`. To start, let's create a 1GB volume.
 
 .. code-block:: python
 
-    vol = provider.storage.volumes.create('CloudBridge-vol', 1, 'us-east-1e')
+    vol = provider.storage.volumes.create('cloudbridge-vol', 1, 'us-east-1e')
     vol.wait_till_ready()
     provider.storage.volumes.list()
 
@@ -55,7 +55,7 @@ long time for a snapshot to become ready, particularly on AWS.
 In order to make use of a snapshot, it is necessary to create a volume from it::
 
     vol = provider.storage.volumes.create(
-        'CloudBridge-snap-vol', 1, 'us-east-1e', snapshot=snap)
+        'cloudbridge-snap-vol', 1, 'us-east-1e', snapshot=snap)
 
 The newly created volume behaves just like any other volume and can be attached
 to an instance for use.

+ 3 - 3
docs/topics/launch.rst

@@ -48,7 +48,7 @@ Once we have all the desired pieces, we'll use them to launch an instance:
 .. code-block:: python
 
     inst = provider.compute.instances.create(
-        name='CloudBridge-VPC', image=img, vm_type=vm_type,
+        name='cloudbridge-vpc', image=img, vm_type=vm_type,
         subnet=subnet, key_pair=kp, vm_firewalls=[fw])
 
 Private networking
@@ -71,7 +71,7 @@ that subnet.
     router.attach_gateway(gateway)
 
     inst = provider.compute.instances.create(
-        name='CloudBridge-VPC', image=img, vm_type=vm_type,
+        name='cloudbridge-vpc', image=img, vm_type=vm_type,
         subnet=sn, key_pair=kp, vm_firewalls=[fw])
 
 For more information on how to create and setup a private network, take a look
@@ -93,7 +93,7 @@ refer to :class:`.LaunchConfig`.
     lc = provider.compute.instances.create_launch_config()
     lc.add_volume_device(source=img, size=11, is_root=True)
     inst = provider.compute.instances.create(
-        name='CloudBridge-BDM', image=img,  vm_type=vm_type,
+        name='cloudbridge-bdm', image=img,  vm_type=vm_type,
         launch_config=lc, key_pair=kp, vm_firewalls=[fw])
 
 where ``img`` is the :class:`.Image` object to use for the root volume.