All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit d910e747 authored by Robert Ricci's avatar Robert Ricci

Convert another sample to use the portal profile

parent e9a62113
Pipeline #2181 passed with stages
in 2 minutes and 58 seconds
"""An example of constructing a profile with a single raw PC.
Wait for the profile instance to start, and then log in to the host via the
ssh port specified below.
import geni.portal as portal
import as rspec
# Create a Request object to start building the RSpec.
request = portal.context.makeRequestRSpec()
# Create a raw PC
node = request.RawPC("node")
# Print the RSpec to the enclosing page.
......@@ -88,7 +88,7 @@ profile you create unless you are doing something quite unusual.
@section[#:tag "geni-lib-example-single-pc"]{A single physical host}
@profile-code-sample["PortalProfiles" "single-pc"]
As mentioned above, most of these simple examples consist of boilerplate
@(geni-lib) fragments, and indeed the portal context and request RSpec
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment