Skip to content

Commit

Permalink
fix samples
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Jan 19, 2024
1 parent a3d2792 commit 3572575
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/_exts/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def run(self):
pattern = r"[\s+]?(\<\?php.*?]\);)"

code_block = super(Sample, self).run()[0]
if 'force' in self.options:
if 'full' in self.options:
return [code_block]

string = str(code_block[0])
Expand Down
2 changes: 1 addition & 1 deletion doc/services/identity/v2/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Identity v2

We recommend users to use Identity v3 when possible.

Some public, however, are still using Keystone v2.0. This following code will work for such providers.
Some public clouds, however, might still use Keystone v2. This following code will work for such providers.

.. sample:: Identity/v2/authentication.php
:full:
2 changes: 0 additions & 2 deletions samples/Identity/v2/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
'identityService' => Service::factory($httpClient),
];

/** @var OpenStack $openstack */
$openstack = new OpenStack($options);

/** @var \OpenStack\Compute\v2\Models\Server[] $servers */
$servers = $openstack->computeV2()->listServers();

0 comments on commit 3572575

Please sign in to comment.