You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way the prefix lp: is written tends to lead the user to think that it's okay to put a space between the prefix and the Launchpad username.
Because, the usage of : as part of the prefix tends to make one assume that it's another key-value parameter. If some other character were used, like lp/locnnil, this confusion wouldn't happen.
This is the error that occurs when you put a space on the ssh_keys value like: lp: locnnil
2023-12-15 18:45:25,270 sru20210629207 INFO: DEVICE AGENT: BEGIN reservation
Traceback (most recent call last):
File "/srv/testflinger-agent/sru20210629207/env/bin/snappy-device-agent", line 8, in <module>
sys.exit(main())
File "/srv/testflinger-agent/sru20210629207/env/lib/python3.8/site-packages/snappy_device_agents/cmd.py", line 59, in main
raise SystemExit(args.func(args))
File "/srv/testflinger-agent/sru20210629207/env/lib/python3.8/site-packages/snappy_device_agents/devices/__init__.py", line 172, in reserve
proc = subprocess.run(cmd)
File "/usr/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1639, in _execute_child
self.pid = _posixsubprocess.fork_exec(
TypeError: expected str, bytes or os.PathLike object, not dict
So, this problem wouldn't happen if, for example, instead of using : as a separator, the / character could be used. It could be configured like this:
locnnil
changed the title
Problem on parsing launchpad username from .yaml file
Usability issue on launchpad username when using "lp:" as prefix
Dec 16, 2023
Main problem:
The way the prefix
lp:
is written tends to lead the user to think that it's okay to put a space between the prefix and the Launchpad username.Because, the usage of
:
as part of the prefix tends to make one assume that it's another key-value parameter. If some other character were used, likelp/locnnil
, this confusion wouldn't happen.This is the error that occurs when you put a space on the
ssh_keys
value like:lp: locnnil
So, this problem wouldn't happen if, for example, instead of using
:
as a separator, the/
character could be used. It could be configured like this:Alternatively, an error could also be provided on the client side if the person specifies the
lp
username with a space after the:
.The text was updated successfully, but these errors were encountered: