You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2020/08/05 08:17:29 UTC

[slack-digest] [2020-08-04] #general

2020-08-04 07:08:57 UTC - Himavanth Rachamsetty: In wsk cli, it appears that the `param` and `param-file` are just given precedence based on whichever appears last in the cmd. For example, in `wsk action create hello hello.js -p a b -P paramfile.json -p c d` , the params within paramfile.json would override the first `-p` , and the second `-p` would override params within `paramfile.json` . I don't see any formal documentation that specifies this. Is this expected ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596524937170000?thread_ts=1596524937.170000&cid=C3TPCAQG1
----
2020-08-04 14:19:19 UTC - Nikhil L: Hello, i am new to OpenWhisk. When i was trying to create functions locally i was getting this error.error:
"Unable to create action 'helloPy': The requested resource could not be found. (code 806144790bcd39934fd9821efc1f9f8f)". If anyone could help me out with this then it would be a great help. Thank you.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596550759171900?thread_ts=1596550759.171900&cid=C3TPCAQG1
----
2020-08-04 14:59:59 UTC - Rodric Rabbah: i dont think this is documented - did you expect different behavior?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596553199172000?thread_ts=1596524937.170000&cid=C3TPCAQG1
----
2020-08-04 15:00:29 UTC - Rodric Rabbah: There is further precedence: query params -&gt; body params -&gt; package -&gt; action. This is documented in webactions.md i think
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596553229172200?thread_ts=1596524937.170000&cid=C3TPCAQG1
----
2020-08-04 15:00:55 UTC - Rodric Rabbah: what is the command you ran?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596553255172500?thread_ts=1596550759.171900&cid=C3TPCAQG1
----
2020-08-04 15:01:09 UTC - Rodric Rabbah: if you grep for 806144790bcd39934fd9821efc1f9f8f in your controller logs it might provide a clue
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596553269172700?thread_ts=1596550759.171900&cid=C3TPCAQG1
----
2020-08-04 15:56:53 UTC - Nikhil L: "wsk action create helloPy hello.py" this was the command i used
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596556613172900?thread_ts=1596550759.171900&cid=C3TPCAQG1
----
2020-08-04 15:57:17 UTC - Nikhil L: this was my code in hello.py
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596556637173100?thread_ts=1596550759.171900&cid=C3TPCAQG1
----
2020-08-04 15:57:19 UTC - Nikhil L: def main(dict):
    if 'name' in dict:
        name = dict['name']
    else:
        name = "stranger"
    greeting = "Hello " + name + "!"
    print(greeting)
    return {"greeting": greeting}

if __name__ == '__main__':
	main()
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596556639173300?thread_ts=1596550759.171900&cid=C3TPCAQG1
----
2020-08-04 17:03:40 UTC - Himavanth Rachamsetty: Thx for the reply @Rodric Rabbah. What about `-p` always overriding `-P` irrespective of which one comes first in the cmd ? Essentially a value coming from the cmdline overriding a value coming from a file. Would that be a fair expectation ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596560620173500?thread_ts=1596524937.170000&cid=C3TPCAQG1
----
2020-08-04 17:05:31 UTC - Rodric Rabbah: i think the implementation carries forward whatever comes last
IMO i do not find that surprising
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596560731173700?thread_ts=1596524937.170000&cid=C3TPCAQG1
----
2020-08-04 18:52:15 UTC - Jesse MacFadyen: in terms of specificity, IMO any -p should overwrite any value read from -P
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1596567135174000?thread_ts=1596524937.170000&cid=C3TPCAQG1
----