Skip to content

Commit 84664d4

Browse files
authored
fix: correct region tag formatting (#102)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-compute/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 911c203 commit 84664d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

compute/compute/snippets/sample_pagination.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# [START compute_images_list_page ]
18-
# [START compute_images_list ]
17+
# [START compute_images_list_page]
18+
# [START compute_images_list]
1919
import google.cloud.compute_v1 as compute_v1
20-
# [END compute_images_list ]
21-
# [END compute_images_list_page ]
20+
# [END compute_images_list]
21+
# [END compute_images_list_page]
2222

2323

24-
# [START compute_images_list ]
24+
# [START compute_images_list]
2525
def print_images_list(project: str) -> None:
2626
"""
2727
Prints a list of all non-deprecated image names available in given project.
@@ -42,10 +42,10 @@ def print_images_list(project: str) -> None:
4242
# requests to the API for you, so you can simply iterate over all the images.
4343
for img in images_client.list(request=images_list_request):
4444
print(f" - {img.name}")
45-
# [END compute_images_list ]
45+
# [END compute_images_list]
4646

4747

48-
# [START compute_images_list_page ]
48+
# [START compute_images_list_page]
4949
def print_images_list_by_page(project: str, page_size: int = 10) -> None:
5050
"""
5151
Prints a list of all non-deprecated image names available in a given project,
@@ -70,7 +70,7 @@ def print_images_list_by_page(project: str, page_size: int = 10) -> None:
7070
print(f"Page {page_num}: ")
7171
for img in page.items:
7272
print(f" - {img.name}")
73-
# [END compute_images_list_page ]
73+
# [END compute_images_list_page]
7474

7575

7676
if __name__ == '__main__':

0 commit comments

Comments
 (0)